Support » Fixing WordPress » Navigation for Older Posts disappeared

  • Resolved mauramcgurk

    (@mauramcgurk)


    The link for “Older” posts at the bottom of my blog page has disappeared. The link for “Newer” is just fine. I’ve looked at the code and can’t figure out why “Newer” is there and “Older” has left the building–can anyone help? Here is the link for the blog page: http://mauramcgurk.com/category/blog.

    Here is the code from the index.php file:

    <div class="prevnext">
    				<div class="prev"><?php previous_posts_link('Previous') ?></div>
    				<div class="next"><?php next_posts_link('Next') ?></div>
    			</div><!--.prevnext -->

    Thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • why would there be a link to previous posts on the front page?

    both links are back when there is something to link to, as in page 2:
    http://yoursite.com/category/blog/page/2

    the labelling of the links might be wrong – find the right code (your posted code might not be it as it would label ‘Previous’ and ‘Next’) and switch the words ‘Older’ and ‘Newer’

    Thread Starter mauramcgurk

    (@mauramcgurk)

    Because otherwise no one can see my “Older” posts. The link used to be there, but has disappeared.

    If the code isn’t in the index.php (which is what I pasted above), where else should I look? Theme is WPFolio 1.75.

    thanks.

    Because otherwise no one can see my “Older” posts.

    that’s why I suggested relabelling the link – at the moment the ‘Newer’ link on the front page links to the older posts.

    anyway, the links are probably done in category.php of the theme:

    <div class="prevnext"><div class="prev"><?php next_posts_link('Earlier') ?></div> <div class="next"><?php previous_posts_link('Later') ?></div></div>

    (again, weirdly, the labelling is different from what actually shows in your site)

    also, see the note in:
    http://codex.wordpress.org/Function_Reference/next_posts_link

    Because post queries are usually sorted in reverse chronological order, next_posts_link() usually points to older entries (toward the end of the set) and prev_posts_link() usually points to newer entries (toward the beginning of the set).

    Thread Starter mauramcgurk

    (@mauramcgurk)

    Thanks (and now I understand what you meant about page 2). The code was in category.php. Thanks for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Navigation for Older Posts disappeared’ is closed to new replies.