WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] "Older Posts" feature not working (8 posts)

  1. adityadennis
    Member
    Posted 4 years ago #

    The "Older Posts" and "Newer Posts" links on my blog just take me to the first page. I tried searching for this issue and it sounds like this problem occurs if you are using a custom theme for your blog. Has this issue been resolved (or are there any workarounds)?

    Thank you for your help in advance!

    James

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    it sounds like this problem occurs if you are using a custom theme for your blog

    Not strictly true. There are a number of possible reasons. A problem in some of the template files within a 3rd party theme might be one of them. If you place a copy of your theme's index.php file in the WordPress pastebin, someone should be able to tell you if this is so in your case.

  3. adityadennis
    Member
    Posted 4 years ago #

  4. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    There's nothing wrong with the "Older Posts" and "Newer Posts" code in that file. However, I did notice that you're excluding a category on your home page and wondered if that could be the problem.

  5. adityadennis
    Member
    Posted 4 years ago #

    Good thinking. Let me check and I'll get back to you.

  6. adityadennis
    Member
    Posted 4 years ago #

    Yes! That's exactly what it was, thank you esmi. I have taken it out for now, but is there a workaround for that?

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 4 years ago #

    If you're excluding the category from the home page via a custom query_posts, then you need to include the query_string to make other functionality work properly.

    Like so:
    query_posts($query_string.'&cat=-3');

    More info here: http://codex.wordpress.org/Template_Tags/query_posts#Usage_Note

  8. adityadennis
    Member
    Posted 4 years ago #

    That worked beautifully. Thank you, Otto42.

Topic Closed

This topic has been closed to new replies.

About this Topic