{"id":17626,"date":"2019-12-27T13:33:00","date_gmt":"2019-12-27T13:33:00","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=17626"},"modified":"2023-04-25T07:54:14","modified_gmt":"2023-04-25T07:54:14","slug":"jetsmartfilters-how-to-build-a-woocommerce-attributes-hierarchical-filter-based-on-jetwoobuilder","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-build-a-woocommerce-attributes-hierarchical-filter-based-on-jetwoobuilder\/","title":{"rendered":"How to Build a WooCommerce Attributes Hierarchical Filter"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"preparations\">Preparations<\/h2>\n\n\n\n<p>In this tutorial, I\u2019ll show how to filter <strong>WooCommerce<\/strong> products by categories and attributes using a hierarchical filter. So, firstly we need to add categories and attributes for products. You can find out how to do this from this <a href=\"https:\/\/docs.woocommerce.com\/document\/managing-product-taxonomies\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">tutorial<\/a>.<br>Note, that you\u2019ll need to add <a href=\"https:\/\/docs.woocommerce.com\/document\/variable-product\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Variable Products<\/a> to filter by attributes.<br>Then, navigate to the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/jetwoobuilder-how-to-create-and-set-a-shop-page-template\/\" target=\"_blank\" rel=\"noreferrer noopener\">Shop template<\/a> and display your products with the help of the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/jetwoobuilder-products-grid-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">Products Grid<\/a> widget.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"creating-hierarchical-filter\">Creating Hierarchical Filter<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<h3 class=\"wp-block-heading\" id=\"creating-hierarchical-filter-with-select-filter-type\"><strong>Creating hierarchical filter with select filter type<\/strong><\/h3>\n\n\n\n<p>First of all, navigate to <strong>Smart Filters<\/strong> &gt; <strong>Add New<\/strong>. Here you can give your filter a name, label and active filter label.<br>Then, you need to choose the <strong>Select filter<\/strong> type and enable the \u201c<strong>Is hierarchical<\/strong>\u201d option to proceed.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/03\/Creating-a-hierarchical-filter.png\" alt=\"creating a hierarchical filter\">\n\n\n\n<h3 class=\"wp-block-heading\" id=\"adding-filter-hierarchy\"><strong>Adding filter hierarchy<\/strong><\/h3>\n\n\n\n<p>After that, you need to add a filter hierarchy. A hierarchy can be built both on the basis of one taxonomy and on the basis of a combination of several. If it is based on one, then when you select the top-level option at the next level, the child terms of the selected one will be displayed.<br>If the hierarchy consists of several taxonomies, then at each next level only elements that correspond to the combination of previously selected ones will be available.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetthemecore rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M9 21C9 21.5 9.4 22 10 22H14C14.6 22 15 21.5 15 21V20H9V21ZM12 2C8.1 2 5 5.1 5 9C5 11.4 6.2 13.5 8 14.7V17C8 17.5 8.4 18 9 18H15C15.6 18 16 17.5 16 17V14.7C17.8 13.4 19 11.3 19 9C19 5.1 15.9 2 12 2Z\" fill=\"#F2D23C\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Things to know<\/div><p class=\"m-0\">Please note, that filter hierarchy is available only for the<strong> Select filter<\/strong> type and only for <strong>taxonomy<\/strong>.<\/p><\/div><\/div>\n\n\n\n<p>So, you can add labels and placeholders and choose the needed taxonomy from the drop-down. You need to set the hierarchy in the order you would like to filter your products.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/03\/Adding-filter-hierarchy.png\" alt=\"adding filter hierarchy\">\n\n\n\n<p>Don\u2019t forget to click on the<strong> Publish<\/strong> button to save the changes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"adding-select-filter-to-shop-page\"><strong>Adding select filter to shop page <\/strong><\/h3>\n\n\n\n<p>Afterward, open your<strong> Shop<\/strong> page and drag-n-drop the <strong>Select filter<\/strong> to the needed section. In the filter settings choose the filter you\u2019ve selected before and apply it to the <strong>JetWooBuilder<\/strong> <strong>Products Grid<\/strong> widget.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/03\/Select-filter-settings.png\" alt=\"select filter settings\">\n\n\n\n<p>I\u2019ve also enabled the <strong>Indexer<\/strong> and <strong>Show Counter <\/strong>options in the filter settings to show the number of products in categories and attributes.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/03\/Enable-indexer-and-counter-options.png\" alt=\"enable indexer and counter options\">\n\n\n\n<p>You can learn how to set an Indexer option for filter from this <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/jetsmartfilters-how-to-set-indexer-option-for-filters\/\" target=\"_blank\" rel=\"noreferrer noopener\">tutorial<\/a>.<br>When you\u2019re done, click on the <strong>Publish<\/strong> button.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"check-how-filter-works\"><strong>Check how filter works <\/strong><\/h3>\n\n\n\n<p>The last step is to preview the changes and see how the <strong>Hierarchical filter<\/strong> works.<\/p>\n<\/div><\/div>\n\n\n\n<p>Now you know how to create hierarchical filters easily for taxonomies with the help of<strong> JetSmartFilters<\/strong> and <strong>JetWooBuilder<\/strong> plugins.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will teach you how to create a product attributes hierarchical filter using the JetSmartFilters plugin.<\/p>\n","protected":false},"author":11,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[419],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create WooCommerce Hierarchical Filters \u2014 JetSmartFilters | Crocoblock<\/title>\n<meta name=\"description\" content=\"Combine several filters of the same type in a hierarchy with JetSmartFilters and JetWooBuilder plugins.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-build-a-woocommerce-attributes-hierarchical-filter-based-on-jetwoobuilder\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create WooCommerce Hierarchical Filters \u2014 JetSmartFilters | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Combine several filters of the same type in a hierarchy with JetSmartFilters and JetWooBuilder plugins.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-build-a-woocommerce-attributes-hierarchical-filter-based-on-jetwoobuilder\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-25T07:54:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/03\/Creating-a-hierarchical-filter.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-build-a-woocommerce-attributes-hierarchical-filter-based-on-jetwoobuilder\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-build-a-woocommerce-attributes-hierarchical-filter-based-on-jetwoobuilder\/\",\"name\":\"Create WooCommerce Hierarchical Filters \u2014 JetSmartFilters | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2019-12-27T13:33:00+00:00\",\"dateModified\":\"2023-04-25T07:54:14+00:00\",\"description\":\"Combine several filters of the same type in a hierarchy with JetSmartFilters and JetWooBuilder plugins.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-build-a-woocommerce-attributes-hierarchical-filter-based-on-jetwoobuilder\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-build-a-woocommerce-attributes-hierarchical-filter-based-on-jetwoobuilder\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-build-a-woocommerce-attributes-hierarchical-filter-based-on-jetwoobuilder\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/articles\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Build a WooCommerce Attributes Hierarchical Filter\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create WooCommerce Hierarchical Filters \u2014 JetSmartFilters | Crocoblock","description":"Combine several filters of the same type in a hierarchy with JetSmartFilters and JetWooBuilder plugins.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-build-a-woocommerce-attributes-hierarchical-filter-based-on-jetwoobuilder\/","og_locale":"en_US","og_type":"article","og_title":"Create WooCommerce Hierarchical Filters \u2014 JetSmartFilters | Crocoblock","og_description":"Combine several filters of the same type in a hierarchy with JetSmartFilters and JetWooBuilder plugins.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-build-a-woocommerce-attributes-hierarchical-filter-based-on-jetwoobuilder\/","og_site_name":"Help Center","article_modified_time":"2023-04-25T07:54:14+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/03\/Creating-a-hierarchical-filter.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-build-a-woocommerce-attributes-hierarchical-filter-based-on-jetwoobuilder\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-build-a-woocommerce-attributes-hierarchical-filter-based-on-jetwoobuilder\/","name":"Create WooCommerce Hierarchical Filters \u2014 JetSmartFilters | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2019-12-27T13:33:00+00:00","dateModified":"2023-04-25T07:54:14+00:00","description":"Combine several filters of the same type in a hierarchy with JetSmartFilters and JetWooBuilder plugins.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-build-a-woocommerce-attributes-hierarchical-filter-based-on-jetwoobuilder\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-build-a-woocommerce-attributes-hierarchical-filter-based-on-jetwoobuilder\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-build-a-woocommerce-attributes-hierarchical-filter-based-on-jetwoobuilder\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/crocoblock.com\/knowledge-base\/articles\/"},{"@type":"ListItem","position":3,"name":"How to Build a WooCommerce Attributes Hierarchical Filter"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article\/17626"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/11"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=17626"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=17626"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=17626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}