query_posts() does not add sticky class in post_class()
-
I’m using a custom query on my homepage but when I use this query, the ‘sticky’ class does not get added to
post_class()
. Can anyone tell me why?Removing ‘category__in’=>$includes, solves the problem but I need to limit the categories displayed on this page.
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args=array( 'category__in'=>$includes, 'paged'=>$paged, 'showposts'=>5 ); query_posts($args);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘query_posts() does not add sticky class in post_class()’ is closed to new replies.