Skip to:
Content
Pages
Categories
Search
Top
Bottom

Limiting the number of blogs displayed with get_last_updated

  • @johnwinch42

    Participant

    Hello,

    I’m using this function on my site :

    php
    $blogs = get_last_updated();
    if( is_array( $blogs ) ) {
    ?>

    Updated Blogs

    php foreach( $blogs as $details ) {
    ” target=”_blank”>php echo get_blog_option( $details[ ‘blog_id’ ], ‘blogname’ )
    php
    }

    php
    }

    (I’ve deleted the ? of php, the forum wouldn’t display it)

    I would like to know, how to modify it by displaying only the five latest blogs ?
    Would it be also possible to display the latest posts of the blogs too ? (just the title linked to the post)

    Thanks you for your help.

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Limiting the number of blogs displayed with get_last_updated’ is closed to new replies.
Skip to toolbar