A
A
Andrey Vasilev2019-12-11 10:45:37
Twig
Andrey Vasilev, 2019-12-11 10:45:37

How to insert a gallery to a product on twig?

Good morning
I have an ACF with type: gallery (galery), I have a page template on twig.
How to display the gallery through twig, are there any shortcodes? and how to write them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Druzhaev, 2019-12-11
@Nolis

twig is a surrogate (as it is fashionable - syntactic sugar :)). Just like less, jsx, pug... They help speed up - but without the appropriate tools - just a mess of text.
Convert to normal view and implement it natively.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question