Created
March 25, 2018 18:10
-
-
Save Sharifur/e260b0cddbec42986e6ec033c88277ef to your computer and use it in GitHub Desktop.
custom taxonomy register with custom post type in wordpress
This file contains 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( | |
'Category', | |
'xgenious_teams', | |
array( | |
'label' => __( 'Category' ), | |
'query_var' => true, | |
'show_admin_column' => true, | |
'rewrite' => array( | |
'slug' => 'category', | |
'with_front' => true | |
), | |
'hierarchical' => true, | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment