Skip Navigation

[Resolved] Link to parent post

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 9 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2692174
Image2.PNG
Image1.PNG

Tell us what you are trying to do?

- Update the sinlge blog template, using elementor, with a the name of a linked Post.
- The linked post could be one or more posts. (See attached image 1.)
- We have created the post type 'People', to link with blogs they have written.
- Rather than showing the standard wordpress 'Author name' I'd like to display the name of the 'Person' related to the post.
- Is there a way to display the related Person (with a link to their individual Person Post Type) here?
- See image 2 for where I'd like to add this.
How do I add the linked 'Parent' post title (sometimes there are more than one) to this page here (within the elementor page builder)

Is there any documentation that you are following?
I'm unable to find any.

What is the link to your site?
hidden link

#2692242

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I would like to know what post-relationship you created and between what post types and on what page/post exactly you want to display the parent link.

Do you have one-to-many or many-to-many post relationship?

Normally - Lets assume you have post types "Students" and "Books".
- You have created one-to-many post relationship between post type "Students" (parent - one) and "Books" (child -many) with post relationship slug "student-book".

- To display related parent post "Student" link on child post "Book" you can use the Types shortcode as given under:

[wpv-post-link item="@student-book.parent"]

More info:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-link
- https://toolset.com/documentation/legacy-features/views-plugin/displaying-fields-of-grandparents/

If you have many related items (child) posts then you can display it using view:
- https://toolset.com/documentation/legacy-features/views-plugin/displaying-related-child-posts/