Getting started:
Related tutorials:
Getting started:
Related tutorials:
| <?php | |
| /** | |
| * list the taxonomy of custom post type with tree structure | |
| * @param string $taxonomy name of taxonomy | |
| * @param integer $parent parent term_id of term | |
| * @return string generate the list of taxonomy | |
| */ | |
| function custom_taxonomy_walker( $taxonomy, $parent = 0 ){ | |
| $terms = get_terms($taxonomy, array('parent' => $parent, 'hide_empty' => false, 'orderby' => 'name')); | |
| //If there are terms, start displaying |