Building A “Most Popular” Posts Section In Oxygen Builder

Authored By: James LePage
Published On: October 24, 2020

Affiliate Disclosure: Some links on this website are affiliate links. We make commissions for purchases made through those links.

We only recommend items/tools that we've personally used and like.

Full Disclosure | FTC Statement

amazon elementor E book

In this article we are going to build out a most popular post section for Oxygen Builder. The Oxygen Builder repeater element as well as the easy posts element both come with advanced query features, and with just a little bit of work, you can easily display the most popular posts by page views for a WordPress website.

To do this, we are going to need a third party plugin, but it's freely available from the WordPress repository, fairly lightweight, and a great addition for any content website using this CMS.

Grab WP-PostViews and install it on your Oxygen Builder website. This plugin tracks the number of views that each post gets and stores that information in your database, meaning that you can easily query posts by their popularity. Keep in mind, that there is a built in popularity query using the oxygen builder, but this uses the comment count, and not the post view count.

This plugin isn't meant to be an analytics solution, and is very simple. Essentially, you install it and it automatically begins tracking the number of page views per post.

Once you've installed the plugin, it's time to build out your query. This is a very simple and easy process, all you need to do is copy and paste this code into the manual section of the query tab under the easy posts or repeater element in Oxygen.

Build out your query by using any of the standard WordPress terms. to order by popularity, you simply need to add this line (with the post views plugin enabled)

orderby=meta_value&meta_key=views

Here's an example query that we use on our website:

posts_per_page=5&post_type=post&no_found_rows=true&post_count=5&found_posts=5&order=DESC&orderby=meta_value&meta_key=views

What this does is order the posts by the number of views associated with it. if you're looking to build out a most popular posts feature in oxygen builder, this is by far the best way to do it. if you have any questions don't hesitate to reach out via our comments section, and we hope that this was a beneficial article!

Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
James LePage is the founder of Isotropic Design, a digital agency that builds WordPress websites. I read, write and design constantly!

Social Share

Request A WordPress Tutorial
Crafting Stunning Digital Appearances & Assets Out Of New York.
Get In Touch
Syracuse, NY | Charlotte, NC | New York, NY
© 2020 Isotropic, LLC
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram