ACF repeater loop filtering

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 ?

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>

Hi @Austereish26 thanks for the reply. This approach worked well but it’s not really optimized to me :slight_smile: Will L&L team support this filters directly in the acf_repeater loop ?