Wednesday, June 30, 2021
The Great Tit
Updated: 9. 9. 2022, Added: 30. 6. 2021

Featured (sticky) posts query with Oxygen Advanced Query Builder

If you create custom grids with posts, you may need to display the Featured Sticky Posts in some cases. This can be done with Oxygen Builders advanced query builder for repeaters and easy posts. I will continue to add examples of queries continuously. Here is the first query:

Featured (sticky) posts query

If you want to display only sticky posts in repeater, then construct your query like this:

  • post_type
    • post
  • meta_query
    • key = featured
    • value = 1
  • (optional disable pagination) no_found_rows = true
  • (optional add offset) offset = 1
Featured posts query with Oxygen Advanced Query Builder

Need to ignore sticky (featured) posts in query?

If you want to display your WordPress posts without featured posts, then add the ignore_sticky_posts option to your advanced query builder:

  • post_type
    • post
  • ignore_sticky_posts = true
  • (optional disable pagination) no_found_rows = true
Ignore sticky featured posts in advanced Oxygen query builder
Did I help you? Support me on Patreon!
Beep this article to your friends!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram