Skip Navigation

[Resolved] Prepend CPT in Another

This support ticket is created 3 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
- 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: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 3 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#2203439

Hi there, is it possible to nest two CPTs in the URL using Toolset?
Like website.com/resourcesCPT/mediaCPT/title

Thanks in advance for your response.

#2204887

Hi,

I'm not clear on exactly how you're planning to link two CPTs, but the main steps will be the same as suggested in the other ticket.
( ref: https://toolset.com/forums/topic/prepend-taxonomy-for-custom-post-type/#post-2204817 )

In the first step, you'll add some static string in the CPT's rewrite rule settings, and in the next step, you'll need a custom function attached to the "post_type_link" filter, to replace that fixed string with the required slug from another CPT.

regards,
Waqar