Gold Penguin Logo with Text

Create a Related Posts Section in Oxygen Builder

Add a related posts section to Oxygen using custom query and easyposts widgets.
Updated October 11, 2022

When building a website blog using the Oxygen Page Builder, you may want to add a related posts section. This is particularly useful if you want to increase page views and keep people engaged on the related content on your site. There are a few different ways to create a related posts section in Oxygen Builder. In this post, we'll show you how to use the custom query and easyposts widgets. This method also doesn't require any additional plugins.

Set up a Custom EasyPosts Query

To set up a custom query, you'll need to add an easyposts widget. Then, click on query -> advanced. When you edit your query you'll be adding 5 parameters:

Post & Page -> post typedata -> advanced -> post type
Post & Page -> post__not_indata -> advanced -> post id
Pagination -> posts_per_page3
Caching -> no_found_rowstrue
Taxonomy -> tax_queryAn array with 3 values:

taxonomy -> category

field -> slug

terms -> add value -> data -> 'post_terms' taxonomy='category'

Once you set this, feel free to adjust the number of posts to display and other styling options.

Create a Randomized Posts Widget in Oxygen

If you don't want related posts, but want to show a selection of random posts, you can do that too. This is great for keeping people engaged on your site and looking at other content they may not know they'd be interested in.

To do this, delete the taxonomy parameter (with the 3 array values) and add another parameter. Now, every time you refresh the query (page) it will show a different set of posts.

Order -> orderbyrand


And that's it! You now know how to create a related posts or random posts widget in Oxygen Builder using the custom query and easyposts widgets. If you have any questions, feel free to leave a comment below.

Want To Learn Even More?
If you enjoyed this article, subscribe to our free monthly newsletter
where we share tips & tricks on how to use tech & AI to grow and optimize your business, career, and life.
Written by Justin Gluska
Justin is the founder of Gold Penguin, a business technology blog that helps people start, grow, and scale their business using AI. The world is changing and he believes it's best to make use of the new technology that is starting to change the world. If it can help you make more money or save you time, he'll write about it!
Notify of

Inline Feedbacks
View all comments
Join Our Newsletter!
If you enjoyed this article, subscribe to our newsletter where we share tips & tricks on how to make use of some incredible AI tools that you can use to grow and optimize a business