How to remove custom taxonomy-base from URL in WordPress

Please help me in wordpress.

I want to remove custom texnonomy base from URL in wordpress

Read More
http://domainname/travel-category/beaches
to 
http://domainname/beaches

where “travel-category” is custom register taxonomy base and “beaches” is category

MY CODE IS :

register_taxonomy(
                'travel-category', //taxonomy base
                'destination', // custom post type
                 ...
            );

Related posts

1 comment

  1. DO one thing add the following code for the rewrite argument for register_taxonomy function:

    'rewrite' => array( 'slug'  => '/',  'with_front' => FALSE ),
    

    Hope this works and if not try refreshing the permalink page.

Comments are closed.