Home › Forums › Add-ons › Flexible Content Field › Create a global counter for a layout type › Reply To: Create a global counter for a layout type
Thanks @Elliot. I have done this but there are two things that do not work here.
id="ac-3"
id="ac-8"
id="ac-3"
id="ac-6"
id="ac-5"
The second bullet point isn’t a problem if the second counter in my footer.php file can just get all ID’s (no matter what they are) for the accordion layout type and generate a line of JS to match but I don’t know if this is possible. I only know of the way to do this sort of thing with a counter.
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.