Is there any way to get only parent terms from custom taxonomy or category?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
Yes, just pass in the parent parameter to
Will return all terms that have a parent value of |
|||||||
|
|
use the 'parent' parameter: http://codex.wordpress.org/Function_Reference/get_terms or http://codex.wordpress.org/Function_Reference/get_categories |
|||
|
|