Title: creating a basic taxonomy
Last modified: August 21, 2016

---

# creating a basic taxonomy

 *  [shiningpathos](https://wordpress.org/support/users/shiningpathos/)
 * (@shiningpathos)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/creating-a-basic-taxonomy/)
 * This is my first time and I can’t get it to work. In functions.php, I have this–
 *     ```
       add_action( 'init', 'register_taxonomy_team_members' );
   
       function register_taxonomy_team_members() {
   
           $labels = array(
               'name' => _x( 'Team Members', 'team_members' ),
               'singular_name' => _x( 'Team Member', 'team_members' ),
               'search_items' => _x( 'Search Team Members', 'team_members' ),
               'popular_items' => _x( 'Popular Team Members', 'team_members' ),
               'all_items' => _x( 'All Team Members', 'team_members' ),
               'parent_item' => _x( 'Parent Team Member', 'team_members' ),
               'parent_item_colon' => _x( 'Parent Team Member:', 'team_members' ),
               'edit_item' => _x( 'Edit Team Member', 'team_members' ),
               'update_item' => _x( 'Update Team Member', 'team_members' ),
               'add_new_item' => _x( 'Add New Team Member', 'team_members' ),
               'new_item_name' => _x( 'New Team Member', 'team_members' ),
               'separate_items_with_commas' => _x( 'Separate team members with commas', 'team_members' ),
               'add_or_remove_items' => _x( 'Add or remove Team Members', 'team_members' ),
               'choose_from_most_used' => _x( 'Choose from most used Team Members', 'team_members' ),
               'menu_name' => _x( 'Team Members', 'team_members' ),
           );
   
           $args = array(
               'labels' => $labels,
               'public' => true,
               'show_in_nav_menus' => false,
               'show_ui' => true,
               'show_tagcloud' => false,
               'show_admin_column' => true,
               'hierarchical' => false,
   
               'rewrite' => true,
               'query_var' => true
           );
   
           register_taxonomy( 'team_members', array('page'), $args );
   
           }
       ```
   
 * And in my template, I have this –
 *     ```
       <?php query_posts(array('post_type' => 'team_members')); while (have_posts()) { the_post(); ?>
               				<?php the_title(); ?>
               				<?php } ?>
       ```
   
 * Is that not right? On admin pages, [the meta box shows up fine](http://d.pr/i/30m4),
   fwiw.

The topic ‘creating a basic taxonomy’ is closed to new replies.

## Tags

 * [taxonomy](https://wordpress.org/support/topic-tag/taxonomy/)

 * 0 replies
 * 1 participant
 * Last reply from: [shiningpathos](https://wordpress.org/support/users/shiningpathos/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/creating-a-basic-taxonomy/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
