WordPress.org

Support

Support » Themes and Templates » Want stickies on top, but paginate together with non-stickies.

Want stickies on top, but paginate together with non-stickies.

  • How can I have sticky posts on top of the first page, but still *counted* towards the posts_per_page limit, rather than them being shown *in addition* to the number of posts defined with posts_per_page?

    Speaking in SQL, how do I fake what would be as simple as “ORDER BY post_sticky DESC” if post_sticky were a column in wp_posts?

    Use case: the template has no special room for sticky posts (indicates them with an overlay icon instead), and represents posts as large icon-like elements (“tiles”) in a 3×3 grid, so there must be no more than 9 posts per page in any circumstances.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Want stickies on top, but paginate together with non-stickies.’ is closed to new replies.
Skip to toolbar