A
A
Andrey Vasilev2019-12-11 16:08:21
Twig
Andrey Vasilev, 2019-12-11 16:08:21

How to display gallery (WP) via ACF? Twig?

Through the template I generate a product page.
I threw a standard WordPress gallery into ACF, screwed it up by creating a page and choosing a photo, it remains to draw a conclusion to the page.
I'm not very versed in twig, it's very annoying.

{% if galery is not empty %}
 <p>Idea</p>
  {{ wp.do_shortcode('[post_gallery]') }}
{% endif %}
I tried to do something like this through plagia - it didn’t work out.
And I don't understand how to get the default one.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question