Skip to content

Instantly share code, notes, and snippets.

@cdmz
Created August 14, 2015 13:23
Show Gist options
  • Save cdmz/6b5518db74c9bb6f1224 to your computer and use it in GitHub Desktop.
Save cdmz/6b5518db74c9bb6f1224 to your computer and use it in GitHub Desktop.
register taxonomy by post type
register_taxonomy( 'blog-assunto',
array( 'blog' ),
array(
'hierarchical' => true,
'show_ui' => true,
'query_var' => true,
'show_admin_column' => false,
'labels' => array (
'name' => __( 'Assuntos', 'egali' ),
'singular_name' => __( 'Assunto', 'egali' ),
'search_items' => __( 'Assuntos', 'egali' ),
'add_new_item' => __( 'Adicionar novo assunto', 'egali' ),
'menu_name' => __( 'Assuntos', 'egali' ),
)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment