Rips
(Phil Rips)
September 8, 2023, 6:55am
2
Hi Vitalii,
Perhaps you can experiment with the Taxonomy parents
and children
parameters to achieve your goal here. Below are some previous discussions on this topic.
Hi. I am using following snippet to display category/taxanomy of a post and it shows all categories of post including child and parents.
<Taxonomy category> <Term title /> </Taxonomy>
However, i want to diplay only primary category of post. How to achieve that?
Hi Everyone,
In the newest plugin version, the taxonomy term loop now supports children=true. (Thanks for the suggestion, Ben!) It’s basically the opposite of parents=true, which gets only the top-level terms.
A list of top-level parent terms belonging to the current post:
<Taxonomy development parents=true>
...
</Taxonomy>
A list of (non top-level) child terms:
<Taxonomy development children=true>
This one is strange though, I’m not sure in what situation it can be useful.
I think what…
If this does not help, it would be helpful to post your current logic and output.
3 Likes