I’m puzzled with one problem. I use query posts to get posts from 2 categories and then display the title.
I am using this code:
I want to display posts that are belonging only TO BOTH categories (Day and Circuit) and since I’m using some div holders so I need to determine if there are posts in both categories or not, so what this does:
1. Checks (counts) to see if there are posts belonging to both categories
2. If no posts are assigned to both categories, move to next
3. If posts exist in both categories – display them.
Now the problem is that I am seeing the posts displayed twice ? Why is this ?
- The topic ‘Query posts displaying posts twice’ is closed to new replies.