Support » Plugins and Hacks » Showing the latest 5 posts on author.php

  • Resolved zompus

    (@zompus)


    Hello,

    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!

    Any clues?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Showing the latest 5 posts on author.php’ is closed to new replies.