Skip Navigation

[Resolved] related posts data with elementor

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

Problem:
How to display fields from related posts when viewing a single post?

Solution:
Insert a View into the template for the single posts you are starting from. (In this case the client is using Elementor and needs to insert the View using a Toolset Views widget.)

Add a relationship Query Filter to the View to display posts from the related post type connected to the post where the View is shown.

Relevant Documentation:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-many-related-items

This support ticket is created 4 years, 11 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by mindyB 4 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1235332

Tell us what you are trying to do?

what vendor goes to what farmers market?
two related posts set with a many to many relationship
now in the elementor pro template I'm building a single vendor template,
How do I add the related post information, ie the Farmers Markets that this vendor attends..
Thanks, Mindy

#1235415

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

Whether you are using an Elementor template for vendor posts or a Toolset template, you need to display the related post information from the Farmers Markets using a View.

So create a View where Farmers Markets is the content selection, and add a relationship Query Filter to display posts from the vendor-farmers marker relationship related to the post where the View is shown. In the output section include the Farmers Market fields you require.

Now in your template for vendors add a Toolset View widget with this View.

You can see details here: https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-many-related-items

#1235604

My issue is resolved now. Thank you!

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