render("shop-category-slice", site()->getQueriedObject(null, [ "title", "description", "thumbnail", "url", "acf.intro_headline", "acf.intro_content", "acf.top_image", ])); $type = site()->getQueriedObject(null, ['display_type']); if ($type === "") { $type = "products"; } else { $type = $type["display_type"]; } if ($type === "both" || $type === "subcategories") { $childCats = site()->getQueriedObject(null, ["children.url,thumbnail,title,count"]); echo site()->render("shop-sub-categories", $childCats); } // little inline style booger if ($type === "both") { echo site()->render("hideSubCatsForBoth"); } echo site()->render('woocommerce-before-content'); } }