Skip Navigation

[Closed] Post Type Relationship "How to" – More Detail?

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 11 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 -
- - - - - - -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by David 11 years, 10 months ago.

Assisted by: Caridad.

Author
Posts
#15384

I am bit confused by these 2 posts on how to create relationships between posts and how to use them?

https://toolset.com/documentation/user-guides/creating-post-type-relationships/
https://toolset.com/documentation/user-guides/querying-and-displaying-child-posts/

I am creating a video directory of commercials and would like to connect those videos (posts) with the agency that produced them (CPT). On the individual video post, I would like to show the agency. On a custom view template for the agency, I would like to embed a view of all of the videos they produced.

Should I use a taxonomy? Should I just make the videos a child of the studio type and use the second tutorial above?

I tried the later but the views do not show anything.

Sh

#15426

Dear David,

You are going in the right direction and both tutorials apply to what you want to do. I think you chose right in using CPT for Agencies because you will have custom fields for Agencies.

In the Video Content Template, follow this guide to show parent fields:
https://toolset.com/documentation/user-guides/displaying-fields-of-parent-pages/

And in the Agency Content Template, you can include a View View as explained in the first tutorial you linked.

Try it and let me know any specific problems that you find.

Caridad

#15530

It worked! Thank you.

Although half of the problem was that I had the relationship reversed. Once I made the agency the parent....it worked like a charm.

The topic ‘[Closed] Post Type Relationship "How to" – More Detail?’ is closed to new replies.