0

I used orderby=date and orderby=comment_count to show my recent post and popular post, but sticky post is always there on the top.

How can exclude sticky posts?

0

You should also use ignore_sticky_posts=1 (it's default value is 0, so sticky posts aren't ignored and returned at top of posts list).

More on pagination parameters: http://codex.wordpress.org/Class_Reference/WP_Query#Pagination_Parameters

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.