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
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.