Skip Navigation

[Resolved] View showing parents of child posts

This support ticket is created 7 years 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
- 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 7 years ago.

Assisted by: Minesh.

Author
Posts
#509426

How would I set up the following view?

- If displayed user (this will be a view in a buddypress profile) has created a child post for a specific parent post, then show that parent post.

Example of use:

- If Sterling Archer (the displayed user because we are looking at his BuddyPress profile) has created an Oil Change (vehicle record child post) for the Volkswagen Beetle (vehicle parent post), show the Volkswagen Beetle in a list along with any other vehicles he has created vehicle record child posts for.

#509605

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

This is how you can access the parent post when you have build post type relationship using Types.

[types field="your-field-name" id="$vehicle"][/types]

Where:
vehicle is your parent post type slug.

More info:
=> https://toolset.com/documentation/user-guides/displaying-fields-of-parent-pages/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.