How to get term id of custom taxonomy
-
I have made a custom taxonomy called ‘item’, and make a list of terms of it with code:
$args_list = array( 'taxonomy' => 'item', // Registered tax name 'show_count' => true, 'hierarchical' => true, 'hide_empty' => '0', 'title_li' => '', 'echo' => '0', ); echo wp_list_categories($args_list);
Taxonomy terms are like:
Country
– USA
– Canda
Planet
– earth
– marsNow, I trying to get list of child terms of current term in another place of template, but can’t get current term ID. How can I get it? Thanx
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to get term id of custom taxonomy’ is closed to new replies.