The MU forums have moved to

Getting blog authors, posts and avatars (1 post)

  1. tomleads
    Posted 13 years ago #

    Hi. I currently have a plugin that allows the admin to select a few different blog titles which then display and link to the respective blog.

    I need to adapt this further to display the author of the blog, the avatar and the latest few posts.

    I have this to start

    					$blog_list = get_blog_list( 0, 'all' );
    					$myBlogs = array();
    					foreach ($blog_list AS $blog) {
    						$blogname = get_blog_details( $blog['blog_id'] )->blogname;
    						$myBlogs[$blogname] = $blog['blog_id'];

    but I'm, not sure how to extend this

About this Topic

  • Started 13 years ago by tomleads