WP_Query->query returns wrong number of posts if select after meta_key/meta_valu
-
Okay, i have a rather tricky Problem with the wp_query->query method, mine looks like:
$recentPosts->query('meta_key=wp_release_id&meta_value=may&category_name=startseite&posts_per_page=2');
but he does not return 2 Posts in all cases, for example if there are 4 Posts for the Category ‘startseite’ of wich the 2 newest ones dont have the meta_key and meta_value i look for he returns zero posts.
Its like he makes an Select with everything besides the meta stuff, and then makes a ‘Sub’Select for the meta stuff on the given result.
Is this a known or a new WP Bug? (or hoooooopefully i made a mistake, if so PLEEEASE tell me) … that thing is killing me -.-
- The topic ‘WP_Query->query returns wrong number of posts if select after meta_key/meta_valu’ is closed to new replies.