Home › Forums › Add-ons › Repeater Field › Hide the title if the repeater's subfields are empty › Reply To: Hide the title if the repeater's subfields are empty
Uff,
i tried, but no success.
I’ll try to explain it on example again. The result is:
<h2>Title</h2>
<ul>
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
</ul>
If the “li” (= repeater sub field) not exists, list not exists, “h2” (= repeater field label) is not displayed. i will be greatfull for any help with this lines of code.
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.