[Resolved] Problem with “php query_posts” please help..
I have my WP set up so that it does not show certain posts (namely those within category 7). I am using
“<?php query_posts(‘cat=-7’); ?>” as perscribed within the codex. This technique works excellent, there is just one small problem. When I input this into my template before “the loop” (even if I put it immediately below the code that obtains the headder) my “previous” and “next posts” links fail to work properly.
By fail to work properly I mean they show up like they are supposed to, but the posts are the same on the page. I click on “previous posts” link and the page changes (the URL changes), but the same posts as are on the main page show up. When I remove the “<?php query_posts(‘cat=-7’); ?>” code from my template, the previous and next posts links beging to work properly.
Anyone know how I can use the query_posts code and get the previous and next posts links to work properly?
Here is my page… http://gpetzold.swifthost.net (as it sits now, the code is in the template so you can see how it is not working properly…
- The topic ‘[Resolved] Problem with “php query_posts” please help..’ is closed to new replies.