Hi, how can i do to list all my actives blog on my home page?
The name of table is wp_blogs, and i need to put a list on my blog.
thaks
Hi, how can i do to list all my actives blog on my home page?
The name of table is wp_blogs, and i need to put a list on my blog.
thaks
...
I created a page template and a plugin to accomplish this:
first, download:
http://wpmudevorg.wordpress.com/project/List-All
I added the following where I wanted it to show up:
<?php
$sort = $_GET['sort'];
switch ($sort)
{
case 'url':
list_all_wpmu_blogs('', 'url', '<p>', '</p>', 'updated');
break;
default :
list_all_wpmu_blogs('', 'name', '<p>', '</p>', 'updated');
break;
}?>
Now if you go to the page it will show a list of blogs names sorted by recently updated
ex: yourdomain.com/bloglist/
if you go to this domain:
ex: yourdomain.com/bloglist/?sort=url
it will show the same list of blogs but their URLs instead of the name of blog.
There's a tutorial at Andrea's site on this as well. Can't put up a link currently but you should be able to find it.
Be sure to read the comments.