Limiting the number of blogs displayed with get_last_updated
-
Hello,
I’m using this function on my site :
<?php
$blogs = get_last_updated();
if( is_array( $blogs ) ) {
?>-
<h3>Updated Blogs</h3>
<?php foreach( $blogs as $details ) {
?>” target=”_blank”><?php echo get_blog_option( $details[ ‘blog_id’ ], ‘blogname’ ) ?>
<?php
}
?><?php
}
?>I would like to know, how to modify it by displaying only the five latest blogs ?
Thanks you for your help.
Best regards,
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Limiting the number of blogs displayed with get_last_updated’ is closed to new replies.