Skip Navigation

[Resolved] Show parent slug in post relationship URL

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 1 year ago.

Assisted by: Minesh.

Author
Posts
#2657289

Hi there,

I've set up 2 post types with with many to many relationships. Post types: Property, Article

I would like to create the following URL structure:

mywebsite.com/[property-slug]/[article-slug]

where the article is related to the property.

Is this possible and how might I go about it?

Thanks,
James

#2657325

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Toolset do not have such feature as the URL structures generated by Toolset conform as per the WordPress standards for custom post types i.e. /cpt-slug/post-slug.

To construct such hierarchical permalink structure: mywebsite.com/[property-slug]/[article-slug]

It would require custom code or a 3rd party plugin that handles custom permalinks. Unfortunately that is beyond the scope of our support policy. If you need custom programming for your project, please feel free to contact any of our certified partners:
- https://toolset.com/contractors/

Here is related ticket that might help you:
- https://toolset.com/forums/topic/hierarchical-url-parent-child-custom-post-type/#post-376770
- https://toolset.com/forums/topic/hierarchical-child-post-type-url/#post-622528
[You may have to adjust the code as its too old and you should have to correct it according to latest post-relationship API functions.]