Support » Plugins and Hacks » Showing the latest 5 posts on author.php
8 years, 10 months ago
On the author.php page i’m trying to show the latest 5 posts by the author and only the latest 5 posts, no more!
Gah, silly me. I worked it out moments after making this thread.
<?php query_posts($query_string . '&posts_per_page=5'); ?>
Putting that, the line above the “<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>” line does the trick. 🙂
Exactly what i was looking, for good effort young man