Support

Account

Home Forums Add-ons Repeater Field Query repeater field and exclude items based on ACF checkbox

Unread

Query repeater field and exclude items based on ACF checkbox

  • I’ve got a repeater field and have added a checkbox sub field to it to allow site editors to check the box to say they want that particular repeater field entry/block to be hidden on the website.

    I have the code working to add display: none; if the sub field is checked. However, I would prefer to query only the repeater field entries that were not checked, instead of just visually hiding those marked as ‘hidden.

    How would I create a query to say, “If the ‘hide’ checkbox sub field is checked, exclude that repeater field entry from the query.”

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.