I've got a custom query on my homepage showing all posts in a certain category. I need this query to respect sticky posts, but it seems from my research that category queries ignore stickyness. My question is two (and a half) fold:
- Can anyone tell me where/how in the database stickyness is applied to a post? I don't see it in
wp_posts. This one is most important and will probably be enough to get you the
- Is there any simple elegant way to grab sticky posts only from a certain category?
- If not, then how about an ugly way to do it?
Just for the heck of it, here's my query, though I think it won't make a difference to the answer.
$getHighlights = array( 'posts_per_page' => 7, 'post_type' => array('post','Event'), 'category_name' => 'Highlights', );
Sorry for the long title, but I wanted to be clear what I was asking for.