I have the following url query that is adding the parameter texas and the county harris to the permalink for a query. These are part of a custom taxonomy called geography.
xyz.com/dealers/honda/?geography=texas&geography=harris
How do I rewrite this url in wordpress to be:
xyz.com/dealers/honda/texas/harris/
you can do the following in your functions.php:
However you should note that you have geography set twice and the last one is the one that will be used.
You will also need to navigate to your permalinks page at
xyz.com/wp-admin/options-permalink.phpbefore this actually works or else you’ll get a 404ish error.