query_posts no longer working in 3.1
-
Hi all,
We were using query_posts function call that worked fine in 3.0.5 but chokes on 3.1. I was wondering is anyone had similar issues. I’ve redacted the code to the main part that we seem to have trouble with:
// Don't include articles from the front featured category in our main front feed b/c there could be duplicates query_posts( array('category__in' => array($front_category_to_use), 'category__not_in' => array($front_featured_category_to_use) ) ); // Store front features in a sepreate loop $featuredfrontposts = new WP_Query( array('category__and' => array($front_category_to_use, $front_featured_category_to_use) ) ); $featuredfrontposts_ids = array(); while ($featuredfrontposts->have_posts()){ $featuredfrontposts->the_post(); $featuredfrontposts_ids[] = get_the_ID(); } $featuredfrontposts->rewind_posts();
I can’t begin to tell you all how helpful you are. Thank you so much for any help anyone can provide!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘query_posts no longer working in 3.1’ is closed to new replies.