Permalinks /country/city/cpt/postname/

Im trying to create a permalink structure like this:

Desired permalink structure

domain.com/country/city/hotels/postname/
domain.com/country/city/restaurants/postname/

I was thinking of making hotels and restaurants a custom post type and add custom taxonomies for the country and city, but i dont seem to be able to put the taxonomies in front of the custom post type in the URL. Is there any workaround for this? Or am i just doing it the wrong way?

Thanks in advance

Read more here:: Permalinks /country/city/cpt/postname/

Leave a Reply

Your email address will not be published. Required fields are marked *