adityadennis
Member
Posted 2 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
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.
adityadennis
Member
Posted 2 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.
adityadennis
Member
Posted 2 years ago #
Good thinking. Let me check and I'll get back to you.
adityadennis
Member
Posted 2 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?
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
adityadennis
Member
Posted 2 years ago #
That worked beautifully. Thank you, Otto42.