Link to a nested category I'm using a matrix field to allow the author to add products they can link to category pages, but my code:

{% for block in entry.transformerProductNavigation %}
 &lt;a href="{{ block.transformer.one.url }}"&gt;{{ block.transformer.one.title }}&lt;/a&gt;
{% endfor %}


outputs the parent category, can I somehow display the nested category – as you would if it was an entry field and nested entries?
This solves my problem:

{% for block in entry.transformerProductNavigation %}
{% set chosenCategory = block.transformer.last() %}

      {# set a variable – chosenCategory to the 'last' category ensuring any nested categories are accessible   #}
      &lt;a href="{{ chosenCategory.slug }}"&gt;{{ chosenCategory.title }}&lt;/a&gt;

{% endfor %}


Thanks to this answer: How to fetch only selected child category?.