The MU forums have moved to WordPress.org

Show all my blogs - widget ? (5 posts)

  1. HansR
    Member
    Posted 17 years ago #

    Hi... I'm a newbee... so forgive me if I ask stupid questions... But would like to publish a list of all the blogs in my network in the sidebar...

    The sidebar is Widget - enabled, so in my opinion,the best way to go would be with such a widget... But I can't find one... Anyone suggestions ?

  2. andrea_r
    Moderator
    Posted 17 years ago #

    http://wpmudevorg.wordpress.com/project/List-All

    Not a widget, but it's easy to make one.

  3. skcsknathan001
    Member
    Posted 17 years ago #

  4. dubaidan
    Member
    Posted 17 years ago #

    Is it possible to 'show only my blogs' in list all.
    That is blogs I have created or have priviledges to edit. (something like this - http://mu.wordpress.org/forums/topic.php?id=2730&replies=15)

    Would be nice for the blog admin to move between their own blogs this way. Even better if this was part of the AdminBar at WPMUDEV.

  5. andrea_r
    Moderator
    Posted 17 years ago #


    <?php
    global $user_level;
    if ( isset($user_level) ) {
    echo "<h2>Your Blogs</h2>";
    $blogs = get_blogs_of_user($current_user->ID);
    if ( ! empty($blogs) ) foreach ( $blogs as $blog ) {
    echo "<li><a href='http://" . $blog->domain . $blog->path . "'>" . $blog->path . "</a></li>";
    }
    }
    ?>

    I searched the forums, couldn't fidn it, no idea who wrote it, but I had a saved copy. plunk this in the backend soemwhere, like the dashboard.

About this Topic