Rewrite rules for custom taxonomies

Question

I got car custom post type. And got custom taxonomies (model, year, color) for car post_type.

Car archive link looks like this:

https://example.com/car/

And i am filtering this archive page with $_GET parameters.

It looks like this:

https://exapmle.com/car/?model=audi&year=2000&color=white/

But i want to make clean url with add_rewrite_rule like this:

https://example.com/car/audi/2000/white/

Is it possible? How can i do it?

0
, , , , bilimokur 3 years 2019-11-28T02:59:38-05:00 0 Answers 70 views 0

Leave an answer

Browse
Browse