Nested Queries using meta_query May 30, 2022 by Tarik Billa Your inner query is overwriting the outer, you’ve assigned both to $the_query.