• How can I add a link to display older posts? I have it set so the main page displays the first 10 posts, but I have more than that and right now i dont have anyway of getting to the next set ie page 2 like on other blogs. how can i get this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Open the index.php file of your theme and see if it has included the “next” and “previous” tags. They should look something like this:

    <?php posts_nav_link('','','&laquo; Previous Entries') ?>
    <?php posts_nav_link('','Next Entries &raquo;','') ?>
    Thread Starter gerbonium

    (@gerbonium)

    great, that worked, Thank you

    I’ve tried this and the same page / posts come up. The URL says it is “page2” but it shows the same 3 posts that were on the first page.

    My blog: https://www.blog/mckayphotography.com.au

    Solved it by using some header code from another theme:

    ‘<?php if (have_posts()) : ?>

    <?php $i = 0; ?>
    <?php while (have_posts()) : the_post(); $i++; ?>
    <div class=”span-8 post-<?php the_ID(); ?><?php if ($i == 3) { ?> last<?php } ?>”>’

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Older posts at the bottom of the main page’ is closed to new replies.