Home › Forums › Add-ons › Repeater Field › How to display a value in array ones if it exists in the sub-field? › Reply To: How to display a value in array ones if it exists in the sub-field?
Hi @kidcajes
Can you please clarify what you mean by:
“My goal is to display only ones the STATE_NAME and displays all the CITY_NAME if they have all the same STATE_NAME.”
This is a bit confusing, but I think you want to display all the repeater field data grouped into headings of city_name and state_name?
perhaps attach a drawing of the desired visual output?
Thanks
E
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.