Skip Navigation

[Resolved] How to build a WP query string to pull posts based on relationship

This support ticket is created 2 years, 4 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
- 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 15 replies, has 2 voices.

Last updated by chrisC-25 2 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#2422603

My issue is resolved now.Final string looks like this:

post_type=concord-albums&posts_per_page=-1&toolset_relationships%5B0%5D%5Brole%5D=child&toolset_relationships%5B0%5D%5Brelated_to%5D={{dc:post:id}}&toolset_relationships%5B0%5D%5Brelationship%5D%5B0%5D=artist&toolset_relationships%5B0%5D%5Brelationship%5D%5B1%5D=concord-albums