WP_Query broken in 3.1
-
$my_query = new WP_Query(‘showposts=10&category_name=portfolio’);
This should theoretically return all the posts under the category named “portfolio” but I get all the post returned that is not in the “portfolio” category.This query is called:
SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts WHERE 1=1 AND ( wp_posts.ID NOT IN (
SELECT object_id
FROM wp_term_relationships
WHERE term_taxonomy_id IN (5,6,7,45)
) ) AND wp_posts.post_type = ‘post’ AND (wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘private’) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 10Ideas?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘WP_Query broken in 3.1’ is closed to new replies.