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:
My 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
- The topic ‘Sticky posts do not work with category__in, possible solution?’ is closed to new replies.