{"id":12062,"date":"2019-07-04T09:24:21","date_gmt":"2019-07-04T09:24:21","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=12062"},"modified":"2024-08-15T10:16:22","modified_gmt":"2024-08-15T10:16:22","slug":"jetsmartfilters-how-to-filter-posts-or-products-by-taxonomy-and-child-term-based-on-checkboxes-list-filter","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-filter-posts-or-products-by-taxonomy-and-child-term-based-on-checkboxes-list-filter\/","title":{"rendered":"How to Create a Filter with the Taxonomies Data Source"},"content":{"rendered":"\n<p>All the widgets of the JetSmartFilters plugin give the users an opportunity to create filters based on different sources. You can choose those sources in the Settings tab of the JetReviews Dashboard. In this tutorial, we will create a <strong>Checkboxes <\/strong>filter with the <strong>Taxonomies Data Source<\/strong> and give you detailed explanations on its features.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"title1\">Creating a Taxonomy<\/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<p>Before creating a filter, you should add a <strong>Custom Post Type<\/strong> with the help of the <a href=\"https:\/\/crocoblock.com\/plugins\/jetengine\/\" target=\"_blank\" rel=\"noopener noreferrer\">JetEngine<\/a> plugin. If you need a hint, go through our <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/how-to-create-a-custom-post-type-based-on-jetengine-plugin\/\" target=\"_blank\" rel=\"noreferrer noopener\">CPT creation tutorial<\/a>. Add a few posts of that custom post type. When the posts are ready &#8211; create a taxonomy with both parent and child categories and add them to your posts. To learn how taxonomies are created &#8211; check out <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/creating-custom-taxonomy-with-jetengine\/\" target=\"_blank\" rel=\"noreferrer noopener\">this tutorial<\/a>. In this example, we created the taxonomy for book genres.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/02\/genres-taxonomy-2.png\" alt=\"adding a genres taxonomy in jetengine\">\n\n\n\n<p>Then, you should display custom terms in the Listing Grid you would like to filter. The details about how it could be done you will find in our <a href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/jetengine-dynamic-terms-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Custom Term displaying tutorial<\/a>.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"title2\">How to Create Checkboxes 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<p>Proceed to the <strong>Smart Filters<\/strong> tab in the <strong>WP Dashboard<\/strong>. Click the &#8220;Add New&#8221; filter and choose the <strong>Title, Filter Label,<\/strong> and <strong>Active<\/strong> <strong>Filter<\/strong> <strong>Label<\/strong>. <\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/02\/books-taxonomies-filter.png\" alt=\"books taxonomies filter\">\n\n\n\n<p>In the <strong>Filter Type<\/strong> drop-down menu, choose the &#8220;Checkboxes list&#8221; option. In the <strong>Data Source<\/strong> dropdown menu, you should choose the &#8220;Taxonomies&#8221; variant.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/02\/books-taxonomies-filter-settings.png\" alt=\"books taxonomies filter settings\">\n\n\n\n<p>Let&#8217;s go through all the features.<\/p>\n\n\n\n<ul>\n<li><strong>Taxonomy<\/strong>. In this drop-down menu, you have to choose the type of taxonomy that you have previously created;<\/li>\n\n\n\n<li><strong>Relation Operator<\/strong>. This feature has two available options. When you choose the <strong>Union <\/strong>option &#8211; only the unique items will be displayed in the list. If there are similar items, they won&#8217;t be visible. For the <strong>Intersection <\/strong>option, the result is vice versa. Only similar items of taxonomies will be shown;<\/li>\n\n\n\n<li><strong>Show empty terms<\/strong>. If you will turn this toggle on, the empty terms that have no items assigned to them will also be shown on the list;<\/li>\n\n\n\n<li><strong>Show only childs of current term<\/strong>. This toggle, when enabled, will make the child terms be shown under the parent ones but without intents that would mark the hierarchy; <\/li>\n\n\n\n<li><strong>Group terms by parents<\/strong>. If you want to save the hierarchical structure where child terms are assigned to parent ones, you should turn on this option;<\/li>\n\n\n\n<li> <strong>Is Checkbox Meta Field (Jet Engine)<\/strong>. It was created especially for the data from the meta fields. Turn it on only if you would like to filter the data of the meta fields;<\/li>\n\n\n\n<li><strong>Exclude\/Include<\/strong>. Here you can choose to include or exclude some of the terms, so they will be or won&#8217;t be shown in the Checkboxes list.<\/li>\n<\/ul>\n\n\n\n<p>When you are done with the settings &#8211; proceed to the page you want to add the filter to and open it in Elementor page builder. Drag and drop the <strong>Checkboxes Filter<\/strong> widget to the page, open the <strong>Content <\/strong>settings tab, and choose the filter you created in the <strong>Select filter<\/strong> drop-down menu. If you need more details about placing the filter on the page &#8211; read <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/crocoblock.com\/knowledge-base\/articles\/jetsmartfilters-how-to-create-a-new-filter-and-apply-it-to-publications\/#title3\" target=\"_blank\" rel=\"noreferrer noopener\">this detailed guide<\/a>.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/02\/books-taxonomies-example.png\" alt=\"taxonomies filter example\">\n<\/div><\/div>\n\n\n\n<p>Now you know how to filter items by taxonomy using the JetSmartFilters plugin functionalities.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From this tutorial, you will learn how to create filters with Taxonomies Data Source using the Checkboxes list filter of the JetSmartFilters plugin.<\/p>\n","protected":false},"author":11,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[535],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Filter Items by Taxonomy \u2014 JetSmartFilters | Crocoblock<\/title>\n<meta name=\"description\" content=\"Filter products or posts by their taxonomies and child terms using JetSmartfilters functionality. Learn how to set Checkboxes filter in such a way.\" \/>\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-filter-posts-or-products-by-taxonomy-and-child-term-based-on-checkboxes-list-filter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Filter Items by Taxonomy \u2014 JetSmartFilters | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Filter products or posts by their taxonomies and child terms using JetSmartfilters functionality. Learn how to set Checkboxes filter in such a way.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-filter-posts-or-products-by-taxonomy-and-child-term-based-on-checkboxes-list-filter\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-15T10:16:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/02\/genres-taxonomy-2.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=\"4 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-filter-posts-or-products-by-taxonomy-and-child-term-based-on-checkboxes-list-filter\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-filter-posts-or-products-by-taxonomy-and-child-term-based-on-checkboxes-list-filter\/\",\"name\":\"How to Filter Items by Taxonomy \u2014 JetSmartFilters | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2019-07-04T09:24:21+00:00\",\"dateModified\":\"2024-08-15T10:16:22+00:00\",\"description\":\"Filter products or posts by their taxonomies and child terms using JetSmartfilters functionality. Learn how to set Checkboxes filter in such a way.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-filter-posts-or-products-by-taxonomy-and-child-term-based-on-checkboxes-list-filter\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-filter-posts-or-products-by-taxonomy-and-child-term-based-on-checkboxes-list-filter\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-filter-posts-or-products-by-taxonomy-and-child-term-based-on-checkboxes-list-filter\/#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 Create a Filter with the Taxonomies Data Source\"}]},{\"@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":"How to Filter Items by Taxonomy \u2014 JetSmartFilters | Crocoblock","description":"Filter products or posts by their taxonomies and child terms using JetSmartfilters functionality. Learn how to set Checkboxes filter in such a way.","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-filter-posts-or-products-by-taxonomy-and-child-term-based-on-checkboxes-list-filter\/","og_locale":"en_US","og_type":"article","og_title":"How to Filter Items by Taxonomy \u2014 JetSmartFilters | Crocoblock","og_description":"Filter products or posts by their taxonomies and child terms using JetSmartfilters functionality. Learn how to set Checkboxes filter in such a way.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-filter-posts-or-products-by-taxonomy-and-child-term-based-on-checkboxes-list-filter\/","og_site_name":"Help Center","article_modified_time":"2024-08-15T10:16:22+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/02\/genres-taxonomy-2.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-filter-posts-or-products-by-taxonomy-and-child-term-based-on-checkboxes-list-filter\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-filter-posts-or-products-by-taxonomy-and-child-term-based-on-checkboxes-list-filter\/","name":"How to Filter Items by Taxonomy \u2014 JetSmartFilters | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2019-07-04T09:24:21+00:00","dateModified":"2024-08-15T10:16:22+00:00","description":"Filter products or posts by their taxonomies and child terms using JetSmartfilters functionality. Learn how to set Checkboxes filter in such a way.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-filter-posts-or-products-by-taxonomy-and-child-term-based-on-checkboxes-list-filter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-filter-posts-or-products-by-taxonomy-and-child-term-based-on-checkboxes-list-filter\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetsmartfilters\/jetsmartfilters-how-to-filter-posts-or-products-by-taxonomy-and-child-term-based-on-checkboxes-list-filter\/#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 Create a Filter with the Taxonomies Data Source"}]},{"@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\/12062"}],"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=12062"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=12062"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=12062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}