The MU forums have moved to WordPress.org

List of blogs (4 posts)

  1. danrodrigues
    Member
    Posted 15 years ago #

    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

  2. danrodrigues
    Member
    Posted 15 years ago #

    ...

  3. maxaud
    Member
    Posted 15 years ago #

    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.

  4. tdjcbe
    Member
    Posted 15 years ago #

    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.

    http://wpmututorials.com

    Be sure to read the comments.

About this Topic

  • Started 15 years ago by danrodrigues
  • Latest reply from tdjcbe