Entry title display count (5 posts)

  1. Jona
    Posted 10 years ago #

    Hi there!

    This my first post here, as in the past the WordPress Codex has been sufficient for me to solve my own problems. This issue, however, appears to come directly from WordPress rather than my custom-theme (seen at http://www.SlightlyRemarkable.com/ ), though I could be wrong (feel free to correct me — I’m by no means a WordPress power-user).

    My problem is that I want only the latest ten (10) blog entries to appear on the homepage of my blog. I set WordPress to do this in the admin -> options -> reading panel. However, when I go to view the archives for a specific month where there are more than a total of ten (10) blog entries in that month, I only see the last ten entries for that month. (Example.) What can I do to make all the blog entries appear for a specific month in the archives, but still only display ten entries on the homepage?


  2. Kafkaesqui

    Posted 10 years ago #

  3. moshu
    Posted 10 years ago #

  4. Jona
    Posted 10 years ago #

    Thanks! I appreciate the help, guys.

  5. BoInG
    Posted 10 years ago #

    Also you can use The Loop in your template for making this.


    // Get the last 10 posts
    <?php query_posts('showposts=10'); ?>

    <?php while (have_posts()) : the_post(); ?>
    <!-- template config... -->
    <?php endwhile;?>

    By editing the 10 number, you can customize your post number. It's easy.

Topic Closed

This topic has been closed to new replies.

About this Topic