SOLVED: It's possible to create nested query loops?

As title says I’m curious if we can build a nested query loops in the new 1.3.7 QueryBuilder ?

I have custom taxonomy which are connected with services.

I would like to build custom containers which loop over all taxonomy(categories) and inside every separated container I would like to list all services within it’s category.
So It will look like:

<Container loop={service_categories}>
  <h3>{ category_name }</h3>
    <Container loop={services in service_categories}>
     <p>{service_title}</p>
    </Container>
<Container>

When I’m doing it, the page do not want to load and shows status_code:503

I think it’s kind of bug. And It should be locked to do not create nested query-loops if it cause a 503

Hi Jakub,

that is currently not possible, but will be on one of the next versions. It is totally useful for FAQs, Restaurant Menus, Model series, and many more.

Best regards,
timmse

2 Likes

Any news on this? I am in need of exactly this feature :slight_smile:

1 Like

Does anyone know if this is possible yet? I somewhat have it working but it just loops the same inside of each loop but that seems to be part of a meta query issue that maybe I am just doing wrong.

If you guys are using ACF/Metabox then take a look here. SOLVED: Query Builder Sub level Nested Repeater/Group Metabox/ACF doesn’t work - #6 by luistinygod

2 Likes

Hey all,

In the 1.5 release, nested query loops are possible. Let us know if you find any use case where it is not working.

Thank you

2 Likes