Hey guys. Slow but steady is my motto here and I’m sorry if it’s a bit anoying. I’m still trying to wrap my head around Cornerstone loopers and ACF.
What I want to do is create a dropdown for a filter. I managed to set up the drop down, have a looper provider on it and withing the dropdown I want a button to loop over a specific ACF field to retrieve all available categories and a respective number of posts available for each category.
I’m struggling with the looper provider though. I used dynamic content with this {{dc:acf:post_field field=“kunstwerk_kategorie”}}. Now on the button I want to display the category name and count for that specific category. I only managed to get the first one using {{dc:post:meta key=“kunstwerk_kategorie”}}
How can I have them all displayed? I got 5 in total but only 2 are currently used in posts so I just want the categories with posts in them to show in the dropdown.