Nestable accordions and query loops

I’ve implemented what is described here with tabs Nestable Tabs and Query Loops and works perfectly.

I can’t understand why it does not work with nested accordion element. The structure panel below.

image

1->Query Loop to Terms (display terms a title of the accordion item)
2->Query Loop to Terms
3->Query Loop to posts with “Taxonomy Query” added (using term_id)

Any ideas?

i have it like this working

i noticed the structure is really important as 1 thing off breaks the system.

Schermafbeelding 2025-09-23 om 14.14.27

Also, the query is not on the item itself, but on the inside container.

You seem to have 3 queries? 1 should be enough as it obtains the data and then copies the structure to display it in loop.

You are totally right!