Skip Navigation

[Resolved] Hierarchical post types Rewrite Rule

This support ticket is created 7 years, 1 month 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#575077

Hi,
I have a website about events in italy, with many cities.
I would like to have a permalink structure like this:
I have custom post types and there is one (the parent one) named "cities".

I would like to prepend the name of the city (while post has one as parent) in the url

Something like this:

1. hidden link
2. hidden link
3. hidden link

The first events has rome as parent
The second one has florence
The third has no parents.

#575176

Hi, Types is designed to work within the custom post URL structures provided by WordPress. Unfortunately custom permalink directory structures with variable slugs like this require some complex custom code, and fall outside the scope of support we provide here in the forum. If you need professional help with this code, you can contact one of our certified partner contractors. Here is the list of our contractors:
https://toolset.com/consultant/