Created
August 14, 2015 13:23
-
-
Save cdmz/6b5518db74c9bb6f1224 to your computer and use it in GitHub Desktop.
register taxonomy by post type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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