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 ?
dubaidan
Member
Posted 18 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.
<?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.