Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function createPostType()
- {
- register_post_type('ta_single', array(
- 'rewrite' => array('slug' => 'base/%name_of_the_taxonomy%/', 'with_front' => false),
- ));
- register_taxonomy('ta_category', 'ta_single', array(
- 'hierarchical' => true,
- 'rewrite' => array(
- 'slug' => 'base',
- 'with_front'=> false,
- ),
- 'show_in_nav_menus' => true,
- ));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement