12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on May 25, 2020

[Video] How to filter posts by a custom field in Oxygen

Sridhar Katakam

This members-only tutorial provides the steps to output entries of an event custom post type that have a custom field (of Radio Button type) named event_free_ticket set to no using a Repeater in Oxygen.

This is similar to David's tutorial titled Show Only Future Events (CPT) with the Repeater in Oxygen.

Step 1

This tutorial can be used for showing posts of any post type not just CPTs.

Install and activate ACF.

Create a new field group having your custom field and set it to appear on posts of your desired post type.

Step 2

Edit the Page/Template where you would like to show filtered entries of your post type. It can be any Page like say, the static homepage.

Add a Section and inside that a Repeater (or Easy Posts, if you prefer that).

Change the query type to custom (or manual, if you prefer that) and select your post type and any other parameters like the number of items to be shown.

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $599 one-time).

Already a member? Log in below or here.