Skip Navigation

[Resolved] Creating a menu that links to child CPT posts

This support ticket is created 6 years, 2 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 – 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 2 replies, has 2 voices.

Last updated by andrewS-10 6 years, 2 months ago.

Assisted by: Waqar.

Author
Posts
#1140541

Hi Support

I have a CPT named "Projects".

I have a second CPT named "Project News Item", which is a child CPT of "Projects" (a one-to-many relationship).

I would like to create a menu for embedding in any parent CPT post, which links to an archive of all the related child CPT posts.

Is this possible?

Many thanks,
Andrew

#1141053

Hi Andrew,

Thank you for contacting us and I'll be happy to assist.

This is possible and you'll create a new view that lists the CPT "Project News Item", in the format that you need for your menu,
( ref: https://toolset.com/documentation/getting-started-with-toolset/create-and-display-custom-lists-of-content/ )

Next, you can add a post-relationship query filter in your View, so that only child posts of current parent posts are included in the view. We have more details on the topic, in this guide:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/displaying-related-child-posts/

After that, this newly created child view can be added to a parent view or the content template, that you're using to show the content of parent posts.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1141106

My issue is resolved now. Thank you!