bikloz
(Guillaume Bikloz)
September 24, 2024, 6:39am
1
Hi, I tried to filter my ACF repeater loop this way but it doesn’t work :
<Loop acf_repeater="product_availability_per_city" field="hide_city" field_compare="is" field_value="true">
<Field city_name />
</Loop>
I tried with custom_field, custom_field_compare, custom_field_value but it is not better.
Any idea ?
bikloz
(Guillaume Bikloz)
October 1, 2024, 1:26pm
2
Anyone ? @benjamin ? thank you
Hi @bikloz maybe you can try if this will work on your end.
<Loop acf_repeater="product_availability_per_city">
<If field="hide_city" not value="TRUE">
<Field city_name /> - <Field hide_city /> <br />
</If>
</Loop>
<Note>Hidden city</Note>
<Loop acf_repeater="product_availability_per_city">
<If field="hide_city" value="TRUE">
<Field city_name /> <br />
</If>
</Loop>
bikloz
(Guillaume Bikloz)
October 2, 2024, 3:54pm
4
Hi @Austereish26 thanks for the reply. This approach worked well but it’s not really optimized to me Will L&L team support this filters directly in the acf_repeater loop ?