• 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.
    2019-01-07_1611
    Can you help with this, please? Thanks!

  • The topic ‘Unable get top-level CPT-onomy terms’ is closed to new replies.