I have a custom hierarchical taxonomy setup for a conference website. The top-level terms in this taxonomy are Dates, which have child terms representing session slots on that date. I’m trying to figure out how to get a list of the top-level terms within the taxonomy, that is I only want the terms that are Dates, not the terms that are sessions. Is this possible using get_terms()
?
Leave a Reply
You must be logged in to post a comment.
Try to pass
0
forparent
argument inget_terms()
.See http://codex.wordpress.org/Function_Reference/get_terms.
Use the hierarchical = 0