WordPress Pagination without plugin

The default WordPress pagination only comes with the “Older posts” and “Newer posts” links at the bottom of the page when you want to navigate to the older entries. This works fine for sites with few entries, but isn’t very user-friendly for blogs and sites with dozens or even hundreds of pages worth of entries. To enable your visitors to quickly navigate your site and browse through your content from page to page, a list of numbered pages would be more useful, like Google’s search results.

paging

Add the following function to your functions.php file:
Continue reading

Return a list of sites on the wordpress multisite network

A simple function that returns the list of all wordpress child websites in the network. The code below just shows all the URL and unlinked.

 $blog_list = get_blog_list( 0, 'all' );
 krsort($blog_list);
 foreach ($blog_list AS $blog)
 {
     echo 'Blog '.$blog['blog_id'].': '.$blog['domain'].$blog['path'].'<br />';
 }

and you’re all done !!