Skip Navigation

[Resolved] Use Elementor Query to display list of child posts

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
#2689695
Screenshot 2024-03-27 08.57.48.png

Hi there 🙂

I have a custom post type called 'People'.

I'm trying to setup the single page template to show some basic info, and then a list of all 'Posts' associate with this 'People' listing.

I add an Elementor 'Posts' section and select the source 'People Posts Intermediatory Posts (which is the relationships between Posts and People). However, the list of posts that appear are not actual posts, they are entries reading: 'Related Posts by this person: 40922 - 40502'.

If it is not possible to display the reltaed posts in this method, is there a way of customising the Query ID?

I really don't want to have to instal Toolset Views. I'm trying to limit the amount of plugins on the site if possible.

Thanks for your help!

#2689736

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I understand what you want and to query the related posts you will have to add the "toolset_relationships" filter.

Please check the following related ticket(s) that might help you out:
- https://toolset.com/forums/topic/display-related-posts-from-toolset-via-elementor-custom-query-id/
- https://toolset.com/forums/topic/custom-query-filter-and-display-related-posts-in-elementor/#post-2355219

More info:
- https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/how-to-migrate-your-site-to-new-post-relationships/