Browser: Chrome 110
OS: Windows
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tool: jam.dev)
Hello bricks team,
I tried to display nested product categories using a query loop, but there seems to be a problem. As you can see in the screenshot below, the Dresses category is a subcategory of Girls within the Kids category. But in the query loop, the Dresses category is displayed twice, one in the Girls subcategory and one in the Kids subcategory.
{"content":[{"id":"sxkduo","name":"section","parent":0,"children":["yusoyk"],"settings":{}},{"id":"yusoyk","name":"container","parent":"sxkduo","children":["njxufg"],"settings":{"_padding":{"top":"10","right":"10","bottom":"10","left":"10"}}},{"id":"njxufg","name":"block","parent":"yusoyk","children":["uhcvjk"],"settings":{},"label":"Product category"},{"id":"uhcvjk","name":"div","parent":"njxufg","children":["kwmwxy","okmpqh"],"settings":{"hasLoop":true,"query":{"objectType":"term","taxonomy":["product_cat"],"tax_query_not":["product_cat::15"],"show_empty":true,"parent":"0"}},"label":"Parent terms"},{"id":"kwmwxy","name":"text-basic","parent":"uhcvjk","children":[],"settings":{"tag":"span","text":"{term_name}"}},{"id":"okmpqh","name":"div","parent":"uhcvjk","children":["haeywg","piqkug"],"settings":{"hasLoop":true,"query":{"objectType":"term","taxonomy":["product_cat"],"tax_query_not":["product_cat::15"],"show_empty":true,"child_of":"{term_id}"},"_margin":{"left":"15"}},"label":"Parent terms"},{"id":"haeywg","name":"text-basic","parent":"okmpqh","children":[],"settings":{"tag":"span","text":"{term_name}"}},{"id":"piqkug","name":"div","parent":"okmpqh","children":["jtgcxi"],"settings":{"hasLoop":true,"query":{"objectType":"term","taxonomy":["product_cat"],"tax_query_not":["product_cat::15"],"show_empty":true,"child_of":"{term_id}"},"_margin":{"left":"15"}},"label":"Parent terms"},{"id":"jtgcxi","name":"text-basic","parent":"piqkug","children":[],"settings":{"tag":"span","text":"{term_name}"}}],"source":"bricksCopiedElements","sourceUrl":"https://try.bricksbuilder.io/t699ffa6","version":"2.0.2","globalClasses":[],"globalElements":[]}
Best regards









