Hi there 🙂
I'm getting in a muddle with my custom post types, taxonomies and URL structures....
I have 3 Custom Post Types for Hotels, Restaurants and Thing to do
I have 3 resorts that I need these Custom Post Types to sit under, Ibiza, St Barts & Mykonos.
I am trying to end up with a URL structure that goes:
hidden link
hidden link
hidden link
hidden link
etc. etc.
What taxonomies should I be using to achieve this structure?
Thanks in advance for your help 🙂
Jamal
Supporter
Languages:
English (English )
French (Français )
Timezone:
Africa/Casablanca (GMT+01:00)
Hello and thank you for contacting the Toolset support.
By default, WordPress will enforce the following URL structure:
- hidden link{custom-post-type-slug}/{post-type-slug} For example: hidden link
And for taxonomy archives, you will have:
- hidden link{taxonomy-slug}/{term-slug} For example: hidden link
To achieve the desired URL structure, you will need custom code to inject rewrite rules into the WordPress routing system. Read more about it here https://codex.wordpress.org/Rewrite_API/add_rewrite_rule
I hope that the following articles will benefit your:
- hidden link
- hidden link
- hidden link
You may also want to check these plugins https://wordpress.org/plugins/tags/permalink/