Skip Navigation

[Gelöst] Query for relationship with WP_Query

This support ticket is created vor 3 Jahre, 3 Monate. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 Antwort, has 2 Stimmen.

Last updated by Christian Cox vor 3 Jahre, 3 Monate.

Assigned support staff: Christian Cox.

Author
Artikel
#1362021

Hello,
i'm working on a website based on Oxygen builder and they have feature for repeater field that i think would be fit to display child element.. but at the moment they don't have native toolset integration instead giving WP Query feature.

I want to know, if child post (relationship) can be done via WP Query

Thanks

#1362115

Hi, yes we have some information about relationship queries with WP_Query here:
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/how-to-migrate-your-site-to-new-post-relationships/

Be sure to read the "Remarks" section, where you will find information about when Types relationship queries become available (we recommend at least init with priority 15).

Let me know if I misunderstood what you're looking for, or if you have other questions about implementation.