the answer for all question about Oxygen Builder plugin and WordPress

#solved – see comments


#solved – see comments

I am messing around with the Advanced Query system in Oxygen and am unable to figure this out…
I have a CPT called Programs (post type slug is “program”)
I have an ACF Custom Field called featured_program which is setup as a ‘true/false” field with Yes & No as the choices.
On my front page, I have a repeater and I would like to display the Custom Posts (in a card format) only if the true/false field is set to yes
So essentially I want the CPT to be filtered by the true/false field option

Any tips as to how I would do that?


Source

1 Comment
  1. Blue Li says

    ‘post_type’ => ‘program’,
    ‘meta_query’ => array(
    array(
    ‘key’ => ‘featured_program’,
    ‘value’ => ‘1’,
    ‘compare’ => ‘==’ // not really needed, this is the default

    I think this is the query, you can try try 🤔

Leave A Reply

Your email address will not be published.

Oxyrealm Docs