I have a post which has a Cat ID of 8 and a Cat ID of 1
In my child template I want to pull posts in a specific category, those with Cat ID of 8, so I’m using
– this works great for posts which have only one category, but when a post has two categories, it fails.
I worked up a query in MySQL to be sure I could actually get both posts, and I can do that but I don’t understand why the above doesn’t query_post does not work.
P.S. I also tried excluding all the Cat ID’s but 8:
query_posts( 'category__in=8&order=ASC' )
but all failed.
Can someone help me understand what is going on here and point me to where I can find a solution?
- The topic ‘Post with two categories – want to pull one’ is closed to new replies.