Skip to content

Instantly share code, notes, and snippets.

@sproutventure
Created August 21, 2010 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sproutventure/542589 to your computer and use it in GitHub Desktop.
Save sproutventure/542589 to your computer and use it in GitHub Desktop.
function custom_taxes()
{
// Taxonomies
$universe_labels = array(
'name' => _x( 'Nexus', 'taxonomy general name' ),
'singular_name' => _x( 'Affiliate', 'taxonomy singular name' ),
'search_items' => __( 'Search Affiliations' ),
'all_items' => __( 'All Affiliates' ),
'parent_item' => __( 'Parent Affiliate' ),
'parent_item_colon' => __( 'Parent Affiliate:' ),
'edit_item' => __( 'Edit Affiliate' ),
'update_item' => __( 'Update Affiliate' ),
'add_new_item' => __( 'Add New Affiliate' ),
'new_item_name' => __( 'New Affiliate' ),
'choose_from_most_used' => __( 'Choose from existing Affiliates' ),
);
register_taxonomy( 'nexus', array( 'page', 'post' ), array( 'hierarchical' => true, 'public' => true, 'query_var' => true, 'rewrite' => true, 'labels' => $universe_labels ) );
}
add_action('init', 'custom_taxes');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment