getTerm('product_cat'); $withoutUncategorized = array_filter($productCats, fn ($c) => $c->slug != "uncategorized"); $topLevelCats = array_filter($withoutUncategorized, fn ($c) => $c->parent == 0); foreach ($topLevelCats as $cat) { echo site()->render("page-tile", $cat); } // var_dump($topLevelCats); } }