Can't stop multiple posts showing on single page
-
Hi all
This is a weird one, although maybe someone will make sense of it!
I want to show a list of all other posts on my single post page, in the navigation. I want the list to show only posts of the category I’m viewing, so I’ve done it using a query:
<?php query_posts(‘cat=4’); ?>
The problem is, if I use that line of code anywhere before I specify
<?php the_content(”); ?>
in my code, the page prints out every post in category 4. If I use that post query after the_content, it works fine. The trouble is, my menu is left aligned, so it needs to come first in the code.
Is there any way of getting a category specific post nav to work on a single page?
Thanks
The topic ‘Can't stop multiple posts showing on single page’ is closed to new replies.