Display Parent Taxonomy Name in template
-
Hello! I need to display through a template the parent taxonomy term name of a taxonomy term. It is, of course, a custom Pods Taxonomy, named “corpus_externo”, but I am only able to display its ID. I want the parent term to be the displayed text and the child term to be the URL underneath. Every parent term will have several different children with different URLs.
My code is:
[each corpus_externo] <a href="{@name}">{@corpus_externo.parent}</a> [/each]
What I am doing wrong? I got just ID numbers instead of the name of the parent. The link, however, works perfectly.
Thanks for any help!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Display Parent Taxonomy Name in template’ is closed to new replies.