Can anyone tell me why sticky posts are not being displayed at the top of the following query:
$wp_query = new WP_Query(array(
'post_type' => 'post',
'posts_per_page'=>10,
'category__in'=>array( 5,140,430 )
));
It was working fine until I added the 'category__in'=>array( 5,140,430 )
parameter, but the stick posts are in category 430 so I don't see why they would suddenly stop appearing at the top?
Edit: This appears to be a long-standing wordpress issue between category__in
and sticky posts. Wordpress codex says stickies should always appear on the front page, but seeing as how this is on the front page and doesn't work it must be a bug.
DESC
and also irrelevant in the sense that if you take it out you get the same result. There appears to be a conflict betweencategory__in
and sticky posts.