Unable get top-level CPT-onomy terms
-
Hello. I’m trying to get only parent CPT-onomy terms:
get_terms(array('taxonomy' => 'location', 'parent' => 0, 'hide_empty' => false))
But this code return all CPT-onomy terms, no matter child or parent it is.But in var_dump it shows that this terms has parent.
Can you help with this, please? Thanks!
- The topic ‘Unable get top-level CPT-onomy terms’ is closed to new replies.