I have a custom post type 'events' and a taxonomy-'Event types'. How can i get all the terms that belong to custom taxonomy 'Event types' , in an array . I use wp_list_categories($args) but it gives the output with each type in ali tags.
Please help me out
code for registering taxonomy
<?php
function event_init() {
// create a new taxonomy
register_taxonomy(
'Event types',
'events',
array(
'labels' => array(
'name'=>'Event types',
'add_new_item'=>'Add New Event types ',
'new_item_name'=>"New Event types"
),
'show_ui' => true,
'show_tagcloud' => false,
'hierarchical' => true,
'rewrite' => array( 'slug' => 'event-type' ),
)
);
}
add_action( 'init', 'event_init' );
?>