Nested Query with terms and posts won't work

Hi there, my first post here :slight_smile:
I need help with a nested query.

I have an outer query which works fine.

I want to create an inner query which shows all the posts which contain the term above.
I guess I have to enter something in “child of”. I try to enter the term_id (which makes sense to me) but nothing happens.

I’ll appreciate any help :slight_smile:
Thanks!

Hi Benjamin,
Welcome to the forum!

On the inner (posts) loop, you should use a taxonomy query like this instead of “child of”.
Change the taxonomy accordingly, and it should work as expected.

Best regards,
timmse

That worked, thanks a lot :slight_smile: