Because the image gallery element outputs images as backgrounds, which is not good for SEO; I want to use the image element to display single images from the ACF gallery and achieve the gallery effect by arranging multiple image elements.
I have tried the two tags {acf_gallery: 2} and {acf_gallery: array_value | 2}, but they don’t work. I don’t know what method can be used to achieve this.
**PS: I have Happyfiles, so there is any way to display dynamic image groups through it?
Aha, I’m not stupid enough to not go to the frontend and check the actual results.
In my case: added the ACF field to the woocommerce category and used {echo:acfgall(‘1’)} in the product category template. But it is not outputting any images.
But when I add the ACF field to a page, your code is working.