Home › Forums › Add-ons › Repeater Field › Using Repeater Post Object as Conditional Statement › Reply To: Using Repeater Post Object as Conditional Statement
ACF does not have have what you’re looking for built in. You’d need to create this yourself, but it could be done.
You’d need to create a function that would look through the repeater field of the post and see if any of the sub fields contains a reference to the post object you’re looking for. The function would need to be built to match all of the fields and relationships specific to you’re post types and custom fields.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.