Hi there,
I have an accordion element which shows ACF fields data. Each accordion contains 4 items, so it’s a fixed amount.
Goal:
show accordion items only if ACF data exists (so no empty items are shown).
Problem:
Setting up conditions on dynamic data works fine – but only with an OR condition and globally for the whole accordion element. So if 1 field is not empty, the whole accordion is shown.
So a condition for each item is required (no query loop, i have a fixed amount of accordion items).
How can I achieve this?
Please no css pseudoclass solutions as this is hacky and no clean solution.
Thanks in advance.
