Sticky posts do not work with category__in, possible solution?
-
Sticky posts do not bubble to the top of the loop like they should as mentioned in the codex if combined with category__in.
Example of the issue dating back two years:
http://wordpress.org/support/topic/category_in-ampamp-stickyMy current query which doesn’t return sticky posts to the top:
query_posts( array( 'post_type' => array('post', 'careers-post'), 'paged' => $paged, 'posts_per_page' => 6, 'category__in' => $page_categories, 'ignore_sticky_posts' => 0 ) );
I need to maintain pagination and posts per page consistent which is why I havnt opted for the double query/loop approach. Any ideas on how I can resolve this?
Any help is greatly appreciated
Thank you.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Sticky posts do not work with category__in, possible solution?’ is closed to new replies.