Support

Account

Home Forums General Issues How can I use Advanced Custom Fields with timber to retrieve Array values? Reply To: How can I use Advanced Custom Fields with timber to retrieve Array values?

  • I have same question for loop images with ACF

    I tried like this but nothing. Galeria slider is the slug name.

    What we must put for img src loop or syntax to check images in this gallery ACF¿?

    <div class="slideshow">
    {% for image in post.get_field('galeria_ slider') %}
        <img src="{{cover_image.src}}" />
    {% endfor %}</div>

    I must declare something like this ?

    $context['cover_image'] = Timber::post.get_field('galeria_ slider');

    Yes or not ? and if yes, where exactly. (function.php and into function __construct())

    many thanks