The MU forums have moved to

Listing all blogs? (3 posts)

  1. roguestar
    Posted 15 years ago #

    i have a Mu set up where the home.php page list all the updated blogs by name and description using a nice bit of code done by a kind sole on here ...

    $blogs = get_last_updated();
    if( is_array( $blogs ) ) {

      Our latest updated blogs...
      <?php foreach( $blogs as $details ) {
    • <b>">
      <?php echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?>
      <?php echo get_blog_option( $details[ 'blog_id' ], 'blogdescription' ) ?>
    • <?php

      }"unfortunatly i have outgrown this a bit as for some reason this code only shows the top 40 updated blogs (i only found this out when i got past 40) how can i have it so that i can have a page 2 with the next 40 blogs and so on? (is this possible?)


  2. ekusteve
    Posted 15 years ago #

    In mu open wp-includes/wp-functions.php and search for get_last_updated (it's around line 587 on my site). Look for the 40 in the long line of code and replace it with something larger...I set mine to 900. That will allow more blogs to show. I haven't figured out how to page them yet, so they will just show up in a long list.


  3. roguestar
    Posted 15 years ago #

    cheers, thats a start :)

About this Topic

  • Started 15 years ago by roguestar
  • Latest reply from roguestar