Author is Aleš Sýkora
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
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