Home Forums Add-ons Repeater Field Relationship in repeater field Reply To: Relationship in repeater field

  • You cannot follow that tutorial when the relationship field is a sub field of a repeater.

    You would have to:

    1. Query ALL of the posts that could be related
    2. Loop over the posts
    3. Loop over the repeater and find the row that matches
    4. If a match is found add the Post ID to a list (array) of matching post IDs
    5. Alter the query by setting the “post_in” argument for WP_Query()

    This will likely have a significant impact on performance of the page.