Skip Navigation

[Resolved] Custom Post Types / Taxonomies / URL Structure

This support ticket is created 3 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 1 reply, has 2 voices.

Last updated by Jamal 3 years, 5 months ago.

Assisted by: Jamal.

Author
Posts
#1830139

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 🙂

#1830681

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/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.