Saturday, July 23, 2022
HomeWordPress Developmenturl rewriting - The way to rework a number of parameter URL...

url rewriting – The way to rework a number of parameter URL to wash URL


I’ve an issue in my search operate. when looking out to the search subject, I’m fetching knowledge from a number of get parameters within the URL.
right here is the url:
area.com/?s=&post_type=retailer&taxonomy1=municipality&taxonomy2=metropolis&taxonomy3=zip&taxonomy4=nation&taxonomy6=standard&submit=# (deal with textual content after = as values)

this works positive, passing these $_GET parameters to wp_query. however I need to rework these URL parameters to wash URL, so I would like it to look one thing like this:

area.com/retailer/municipality/metropolis/zip/nation/standard/

is that this attainable? I do know you’ll be able to obtain the primary 2 segments with CPT and taxonomy, however what about a number of worth parameters? I admire your solutions upfront, thanks

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments