WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Having a Custom Taxonomy function like below, can you please let me know how I can list all of my Taxonomies in an unordered html list

enter code here
function create_conference_taxonomy() {
 $topiclabels = array(
 'name' => 'Topic',
 'singular_name' => 'topic',
 'search_items' => 'Search topics',
 'popular_items' => 'Popular topics',
 'all_items' => 'All topics',
 'parent_item' => null,
 'parent_item_colon' => null,
 'edit_item' => 'Edit topic',
 'update_item' => 'Update topic',
 'add_new_item' => 'Add new topic',
 'new_item_name' => 'New topic name',
 'separate_items_with_commas' => 'Separate topics with commas',
 'add_or_remove_items' => 'Add or remove topics',
 'choose_from_most_used' => 'Choose from common topics',
 'menu_name' => 'Conference topics',
  register_taxonomy( 'conference_topics', 'conference_session',
  'hierarchical' => false,
  'labels' => $topiclabels,
  'query_var' => true,
  'update_count_callback' => '_update_post_term_count',
  'rewrite' => array('slug' => 'topics' )


share|improve this question
Did you try the codex? – vancoder Apr 17 '13 at 23:04
Hi Vancoder, Actually I did but they seem too confusing for me.I am guessing to use following code <?php $args=array( 'name' => 'genre' ); $output = 'objects'; // or objects $taxonomies=get_taxonomies($args,$output); if ($taxonomies) { foreach ($taxonomies as $taxonomy ) { echo '<p>' . $taxonomy->name . '</p>'; } } ?> but I cant figure out how to use it! – Behseini Apr 17 '13 at 23:12
Your code specifies only to list taxonomies called 'genre' - which rather defeats the purpose of 'list all of my Taxonomies'. Are you sure you mean taxonomies, and not terms? – vancoder Apr 17 '13 at 23:21
Sorry Vancoder, I think you get the point I am actually looking to find a way to display terms? I mean all topics like romance, Commedy ,.. which user can create true above code – Behseini Apr 17 '13 at 23:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.