I created Custom Post Types and taxonomies for them on the site. I need to list these taxonomies and their terms. How can i do this? For example, I created two , one for taxonomies, and the second for terms
function pediatric_create_post_type() {
register_post_type( 'speakers',
array(
'labels' => array(
'name' => __( 'Speakers' ),
'singular_name' => __( 'Speaker' ),
),
'public' => true,
'has_archive' => true,
'supports' => array( 'thumbnail', 'title', 'editor' ),
)
);
register_taxonomy(
'positions',
'speakers',
array(
'label' => ( 'Positions' ),
'hierarchical' => true,
)
);
register_taxonomy(
'countries',
'speakers',
array(
'label' => ( 'Countries' ),
'hierarchical' => true,
)
);
}
add_action( 'init', 'pediatric_create_post_type' );
<div class="speakers-filter">
<ul class="speakers-tax">
<li></li>
</ul>
<ul class="speakers-tax_terms">
<li></li>
</ul>
</div>