Strange behaviour when excluding a cat from a wp_query
-
I have a page which calls two custom queries – the first time it excludes posts with category 3 and the second time it includes only posts with category 3. It had been working perfectly up until a couple of days ago, but now the second query no-longer works. The strange thing is, the first query excludes all category 3 posts, but the second query produces nothing at all. I therefore know that there are posts correctly assigned category ID 3 as they are being excluded from query 1.
[Code moderated as per the Forum Rules. Please use the pastebin]
Help?
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Strange behaviour when excluding a cat from a wp_query’ is closed to new replies.