Having trouble printing taxonomy terms in a Drupal twig template. Hoping someone can help.
I have a taxonomy vocabulary called "FAQ Category". Inside of it, there are several terms. I am trying to print all terms in a twig template called views-view--faqs.html.twig.
So far, I am able to print the term of the current page by using:
{{ data.title|raw }}
I can print the next and previous terms on the same page by using data.previous.label and data.next.label, and those are working fine.
What I need is to print all the terms, and I'm stuck. Ive tried several variations of for loops, such as:
{% for item in data %}
{{ data.title|raw }}
{% endfor %}
But that is not working. Any idea what I can do to print all of the terms?