I’m using proreview theme and it uses a custom taxonomy called “review-cats”
In of this
www.domain.com/review-cats/clothing
I want
www.domain.com/clothing
I’ve been trying to find a solution for 2 days not …
relevant code
register_taxonomy(
“review-cats”,
array(“reviews”),
array(
“hierarchical” => false,
“label” => “Categories”,
“singular_label” => “Category”,
“rewrite” => true
)
);
This is not possible out of the box, nor is it advisable, and for good reason. If you really did want to do this you would need to hack the core files.
Why it’s not a good idea:
clothing
, and a taxonomy termclothing
, and you go to example.com/clothing ? Does the user want the page? Or the term? There’s no way of telling!Doing this is opening a can of worms for yourself.
Instead I recommend you use the rewrite parameter to redefine the slug as
'reviews'
. Note that setting the slug to''
will not do what you desire, even though it seems like it should.e.g.:
I also recommend you use a generator to create your taxonomy and post type code. Go here:
http://themergency.com/generators/