Skip Navigation

[Resolved] parent child relationship url

This support ticket is created 4 years, 3 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 4 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#1459159

I want to setup a Parent/Child relationship of 3 different custom post types. The easiest way for me to describe this is to use the structure of a bible book/chapter/verse example.

I have 3 CPT added: Book, Chapter, Verse
I have 2 post relationships added: Book (one) to Chapter (many), Chapter (one) to Verse (many)

My expectation when i access a verse on the front-end is that the url should be something like this:
mysite.com/book/BookTitleHere/chapter/ChapterTitleHere/verse/VerseNumber

However, currently the urls is like the following, which is not ideal and incorrect:
mysite.com/verse/VerseNumber

Does anyone know if Toolset Types can be used to configure the url to what i need above?

Thanks.

#1459559

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Toolset Types offers a limited solution to rewrite the base for your CPT. We offer a URL rewriting option with CPT using which you can prefix the keyword you want in the URL that means you can add the static slugs at:
=> Toolset => Post Types => Edit post type => Under section "Options" you will find option rewrite

To implement the URL structure as per your need, there is no easy way to achieve this and this requires custom programming. Such custom programming is beyond the scope of our support policy. For your such custom URL rewrite requirement, I would suggest contacting our certified partners.
=> https://toolset.com/consultant/

However, the following link may help you achieve this, please have a look:
=> http://wordpress.stackexchange.com/questions/205033/wordpress-rewrite-rules-for-state-and-city

Few other article links that may help you:
1. hidden link
2. http://code.tutsplus.com/articles/using-wordpress-for-web-application-development-available-features-part-6-url-rewriting-or-routes--wp-34326
3. hidden link

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