Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- register_taxonomy(
- 'portfolio_category', //The name of the taxonomy. Name should be in slug form (must not contain capital letters or spaces).
- 'portfolios', //post type name
- array(
- 'hierarchical' => true,
- 'label' => 'Portfolio Category', //Display name
- 'query_var' => true,
- 'show_admin_column' => true,
- 'rewrite' => array(
- 'slug' => 'Portfolio-category', // This controls the base slug that will display before each term
- 'with_front' => true // Don't display the category base before
- )
- )
- );
- register_taxonomy(
- 'portfolio_menu', //The name of the taxonomy. Name should be in slug form (must not contain capital letters or spaces).
- 'portfolios', //post type name
- array(
- 'hierarchical' => true,
- 'label' => 'Portfolio Menus', //Display name
- 'query_var' => true,
- 'show_admin_column' => true,
- 'rewrite' => array(
- 'slug' => 'itams', // This controls the base slug that will display before each term
- 'with_front' => true // Don't display the category base before
- )
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement