Hi, Just wanted to share a nice feature. now that we have Twig.
I’m not sure we could do this before via another method.
Used for conditions essentially to hide a section if the array was empty. or just fetch the length number.
{{ acf.post_field({“field”:“myRepeater”}) | length }}
If this can be done a better way it might be useful.
This is a nice to have essentially get the length of an array while filtering a key ‘type’ for a specific value
{{(acf.post_field({“field”:“myRepeater”}) |filter(item => item.type == 1)) | length}}
Maybe good for the docs.