In this example, I have a hero slider ( ACF Pro repeater ) that is attached to all the pages and want to show slider only if at least one slide is created.
Note my repeater is "hero_slider". Yours can be different.
Set up slider with Oxygen repeater component and assign condition.
- Press Condition button
- In the first block choose dynamic data from dropdown options
- In "Insert Dynamic Data" dialogue box scroll down to Advanced
- Press PHP Function Return value
- Important: in Function name type: "have_rows"
- Important: in Function Arguments: "hero_slider" (Type your repeater name)
- In the middle dropdown change from "==" to "is_not-blank"
- 3rd dropdown repeat speps 3 - 6
Function name: have_rows
Function argument: "repater name"