Skip Navigation

[Resolved] Custom URL structure

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user wanted to add their custom taxonomies to their custom post type's URL.

Solution:
This is something that is completely out of the scope of our support forum, as such we are not able to assist with this one.

In any case it would require the use of custom coding to add the taxonomies to the URL.

What I recommend is that you get in touch with a registered contractor to get this one done for you. You can contact them at the link below.
https://toolset.com/contractors/

This support ticket is created 3 years, 7 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by pabloQ-2 3 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#2069159

I want to replace the default URL structure (mysite.com/post-type-slug/post-slug/) with a URL structure based on the category of the post (mysite.com/category-slug/post-slug/). On the other hand, I'd like the URL structure to respect the hierarquical structure of the taxonomy (mysite.com/category-slug/subcategory-slug/post-slug/).

Please note that "category-slug" is a custom taxonomy made for my CPT. In other words, it is not the WordPress' category by default.

To make it more clear, this is what I'd like to have:

CPT: Italian courses.
Taxonomy: Course category.
Course category: Italian courses in Madrid.
Course subcategory: Summer courses.
Post: Level 1.

What I've got: /italian-courses/level-1/
What I want: /italian-courses-madrid/summer-courses/level-1/

#2069421

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Pablo,

This is something that is completely out of the scope of our support forum, as such we are not able to assist with this one.

In any case it would require the use of custom coding to add the taxonomies to the URL.

What I recommend is that you get in touch with a registered contractor to get this one done for you. You can contact them at the link below.
https://toolset.com/contractors/

Thanks,
Shane

#2069833

Thank you Shane!