can’t determine which posts are sticky using wp_query
-
I’m using wp_query to do the wordpress loop as follows:
$pagePosts = new WP_Query();
$pagePosts->query('showposts=10&orderby=date&order=DESC');
I have marked some posts as sticky, and while they show up as being sticky in the back end, I can’t work out how to tell they are sticky within the loop, and cannot see this info in the raw posts array variable either.
I’ve tried using is_sticky() and post_class() and they don’t recognise the sticky posts.
I hope I’m doing something stupid, and hopefully a kind wise owl can shed some light? ??
Thanks for your time.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘can’t determine which posts are sticky using wp_query’ is closed to new replies.