Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Nested loop won’t pull required data from related posts

  • I have a post that has an ACF relationship field with related work (CPT) in it.
    And work posts have an ACF relationship field with related services (CTP) in it.
    So I’m trying to loop through those work CTPs and display services that are related to them.

    First loop (working) looks like this:
    Second loop
    The second loop (not working) – like this:
    Second loop

    The second (inner) loop won’t display any services. Am I doing something wrong?

  • Hi there,

    The nested query block does NOT support a relationship field, unfortunately.

    It is a known issue; we haven’t found a way to make it work yet.

  • I see… Is there any way to get around this?

  • You will need to use ACF’s shortcode or PHP function to generate the output.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.