Viewing 1 replies (of 1 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    From David Sader:

    <?php
    if(is_user_logged_in()) {
    global $current_user;
      $blogs = get_blogs_of_user( $current_user->id );
         if($blogs) {
         	 foreach ( $blogs as $blog ) {
             echo '<li><a href="http://' . $blog->domain . $blog->path .'">' .  $blog->blogname . '</a></li>';
    		}
         }
    }

    So you’d change $current_user->id to that user ID.

    Pagination.. you’d have to write a loop to handle that.

Viewing 1 replies (of 1 total)
  • The topic ‘Listing Blogs with Pagination’ is closed to new replies.