It is not clear in the documentation what the get_taxonomy
function returns.
We might want to add that it returns an object with kind
and items
.
Here is some code I used to find it out:
{% for t in config.taxonomies %}
<div>
Taxonomy<br>
Name: {{t.name}}<br>
{% set taxonomy = get_taxonomy(kind=t.name) %}
get_taxonomy: {{taxonomy}}<br>
kind (taxonomy config): {{taxonomy.kind}}<br>
items: {{taxonomy.items}}, length: {% set length = taxonomy.items | length %}{{length}}<br>
{% for item in taxonomy.items %}
{{ item.name }}
<br>
{% endfor %}
</div><br>
{% endfor %}