I want this url: =>
mydomain.com/genre/chant
to be rewritten as =>
mydomain.com/chambers/chant.
I want the users to access mydomain.com/chambers/chant instead of mydomain.com/genre/chant.
genre
is a custom taxonomy for custom post type tracks
. This custom taxonomy is registered in the theme. I want to change its slug from genre
to chambers
in my plugin. How do I do it?
I tried the below rewrite url code, but it did not work:
add_rewrite_rule('^chambers/?','index.php?post_type=tracks&taxonomy=genre','top');