WP_Querynot selecting category
I cloned and modified a plugin called Batch Categories. I liked what it did, but I needed some additional functionality, so I made those modifications. What I’m having a problem with WP_Query on one particular blog. Here’s an example of a query statement I’m using:
The problem is this – if I have the cat= clause in the query I return nothing even though the category ID exists and has posts. If I remove the cat= clause I get the whole file.
I decided to replicate the error, so I copied the plugin to another blog and ran the query with one of that blog’s cats. On the second blog everything works as it should. So, the error seems to somehow be isolated to the first blog.
On that blog I’ve optimized the tables and upgraded to 2.9 to see if that would “fix” whatever is wrong.
Anybody got a clue what might be happening? Anything else I should look for?
- The topic ‘WP_Querynot selecting category’ is closed to new replies.