The MU forums have moved to WordPress.org

limitation of showing last updated blogs (5 posts)

  1. websoft
    Member
    Posted 14 years ago #

    <?php
    $blogs = get_last_updated();
    echo 'Last updated blog IDs:<ul>';
    foreach ($blogs AS $blog) {
        echo '<li>'.$blog['blog_id'].'</li>';
    }
    echo '</ul>';
    ?>

    this is the last updated blogs function but how to limit to to show e.g. last 10 blogs ? i think sth should be go on get_last_updated();

  2. tim.moore
    Member
    Posted 14 years ago #

    Check http://codex.wordpress.org/WPMU_Functions/get_last_updated

    It looks like one of the parameters you can set will limit the return results as you want.

  3. andrea_r
    Moderator
    Posted 14 years ago #

    "how to limit to to show e.g. last 10 blogs ?"

    The code for this is in /wp-content/themes/home/home.php

    Also, there's a few plugins aroudn that do this too. http://wpmudevorg.wordpress.com

  4. websoft
    Member
    Posted 14 years ago #

    exactly how to limit it by $quantity parameter ?

  5. websoft
    Member
    Posted 14 years ago #

    well i found it in wpmu-functions.php file ... now Solved .

About this Topic