Custom field in TWIG template
-
Hello,
Does anyone know how to insert a custom field into a twig template? I did everything correctly up to inserting the code in the .twig file. Nothing works, I’ve tried PHP code and also some twig code I found online:
{% for item in post.get_field('coordonate_gps') %} {% endfor %}
It just doesn’t work… anyone know this? Please help, thanks!
- The topic ‘Custom field in TWIG template’ is closed to new replies.