Skip Navigation

[Resolved] Showing relationships content in post page with layouts

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user wanted to display their related post content.

Solution:

I would recommend having a look at the link below.
https://toolset.com/documentation/post-relationships/

This support ticket is created 5 years, 10 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.

Our next available supporter will start replying to tickets in about 2.19 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by David 5 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#1191124
layout project.jpg

Hi There! I´m realyy stucked with a project and I need a little bit help.

In a few words:

It´s a complex project portfolio.
There are projects (parent relationship) and works that belongs to a project. (example: 3 jobs could belong a project)

In attachment is the template project I want to build with Layout toolset

My questions:
1) should I make a parent-child relationship with projetcs and jobs?
2) Can I show in a postpage template the project info (as an example in attachment?
3) Should I create workers and speciality as taxonomies or as CPT´s?

4) (and last one) Is it possible to built it with layouts Toolset or not?

Really thank you in advance for your help!!!

#1191186

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi David,

Thank you for contacting our support forum.

In answering your questions.

1. Yes I would recommend using a Parent-Child relationship for this setup. To setup your relationship please follow the instructions in the link below.
https://toolset.com/documentation/post-relationships/

2. Yes you can and this can be done with our Layouts plugin.

3. This is possible with our Layouts plugin.

I would recommend going through our post relationship documentation in order to get a better understanding of what you can achieve.

Thanks,
Shane

#1191445

Hi, Shane! Very thank you for your reply. It was very usefull!! 😉

But I still need your help for one thing more.

I´ve connected parents fields in child post, but I can´t to do the opposite when I try to show a child field (called "gallery") in a parent post theme (with a shortcode).

I was looking for a solution in the documentation but I failed.

I´ve tried with [wpv-post-field name="wpcf-gallery"] but isn´t working
I´ve tried too with @{relationship-slug}.child, but I think I don´t know to complete right the shortcode.

Could you help me, please?

#1191597

Hi, I´m still stucked in this point.

Is it probably that I need to change my relationships between "trabajos" and "realizaciones" from one to many" to "many to many"?

#1192045

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi David,

Ahh for this one you will need to create a view. This view will list out the children of that Parent. Then you can add the view to the parent post.

This view will be used to list the gallery items.

Now on that field you will need to add a query filter for the Post Parent and set it to get the parent from the post where this view is placed.

Please let me know if this helps.
Thanks,
Shane

#1192740

Thank you!