Here’s a simple internal function that will return a list of all sites in the network. The code below just shows them all and unlinked.
$blog_list = get_blog_list( 0, 'all' );
foreach ($blog_list AS $blog) {
echo 'Blog '.$blog['blog_id'].': '.$blog['domain'].$blog['path'].'
';
}
Paste that somewhere in a theme file or page template and there you go. Hope someone finds it handy and gets inspired to write a snazzy plugin, possibly a shortcode.
Someone should extend it and use the transients API to store this and automatically update it when a new site is created otherwise it wouldn’t scale.
Twitter: andrea_r
says:
Yep, I wouldn’t use this on a large site.
A small one, less that a hundred sites, yes. There will be a lot of those now.
So…. get on that, will ya? ;P
Twitter: miklb
says:
Would be nice if that was easily extended to be able to sort the list other than by ID or latest updated.
Twitter: andrea_r
says:
Could have a look at this list-all-redux plugin too.
http://wpmututorials.com/plugins/newest-blogs-widget/
this was just an internal function I came across & figured I should write about.
It is very useful for me.
Twitter: documentarymix
says:
Is there a plugin for this? It would be really helpful..: )