{"id":1673097,"date":"2020-09-15T12:47:45","date_gmt":"2020-09-15T12:47:45","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=1673097"},"modified":"2020-11-16T10:22:50","modified_gmt":"2020-11-16T10:22:50","slug":"adding-a-custom-taxonomy-to-woocommerce-products","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/de\/course-lesson\/adding-a-custom-taxonomy-to-woocommerce-products\/","title":{"rendered":"Adding a Custom Taxonomy to WooCommerce Products"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"59d1e5d378a8d299b984ea6fd4e502d2\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/09\/custom-taxonomies-for-products.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/09\/custom-taxonomies-for-products-500x452.png\" alt=\"Selecting a custom taxonomy term when editing a WooCommerce product\" class=\"wp-image-1770327\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Selecting a custom taxonomy term when editing a WooCommerce product<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<p>For example, you can use standard product categories to classify products by types (heels, boots, sandals, slippers, etc.) and use a custom taxonomy to classify your products by departments (Women, Men, Children).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps for adding a custom taxonomy to products<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Go to the <strong>Toolset <\/strong>\u2192 <strong>Dashboard <\/strong>page and click the <strong>Add custom taxonomy <\/strong>button in the <strong>Product<\/strong> row.<\/li><li>Enter the plural and singular name for your taxonomy. The slug is created automatically.<\/li><li>Click the <strong>Save Taxonomy <\/strong>button.<\/li><\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"4e300abf343d7a7ce0ddad448fb600fe\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/09\/custom-taxonomy-woocommerce-products.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/09\/custom-taxonomy-woocommerce-products-500x449.png\" alt=\"Adding custom taxonomy to WooCommerce Products\" class=\"wp-image-1770337\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Adding custom taxonomy to WooCommerce Products<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<p>Your new taxonomy will now appear in the main WordPress admin menu under the Products section. <\/p>\n\n\n\n<p>Go to this taxonomy page to add your actual categories to it. These categories are called <a href=\"https:\/\/toolset.com\/de\/glossary\/taxonomy-term\/\">taxonomy terms<\/a>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"79875c70907dfcc468f55a861320a5d8\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/09\/custom-taxonomy-for-products.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/09\/custom-taxonomy-for-products-500x210.png\" alt=\"Custom taxonomy for products: Departments and its terms: Childresn, Men, Women\" class=\"wp-image-1770367\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Custom taxonomy for products: Departments and its terms: Children, Men, Women<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<h2 class=\"tb-heading\" data-toolset-blocks-heading=\"3a94a5f5ac99f0c5642cb0af3ba9a028\">How to display custom product taxonomy<\/h2>\n\n\n\n<p>You can easily display custom product taxonomies using Toolset blocks. Usually, you would do this when designing <a href=\"https:\/\/toolset.com\/de\/course-lesson\/creating-custom-templates-for-single-product-pages\/\">single-product templates<\/a> or <a href=\"https:\/\/toolset.com\/de\/course-lesson\/building-a-custom-woocommerce-shop-page\/\">product archives like the Shop Page<\/a>.<\/p>\n\n\n\n<p>Use the following steps to display custom taxonomy information:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Insert a Toolset block to display the taxonomy. For example, you could use the Toolset <strong>Single Field <\/strong>block.<\/li><li>In the right sidebar, select <strong>Taxonomy <\/strong>for the <strong>Field Type <\/strong>option and then use the <strong>Post Taxonomy <\/strong>dropdown to select your custom taxonomy.<\/li><li>In the right sidebar, use the <strong>Field Options<\/strong>, <strong>Typography<\/strong>, and other sections to design the output for taxonomy information.<\/li><\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"11351d52cb2876ecd73495faa0ac0a78\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-display-custom-product-taxonomy-.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2020\/10\/toolset-woocommerce-display-custom-product-taxonomy--500x305.png\" alt=\"\" class=\"wp-image-1817059\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Using the Toolset Single Field block to display information coming from a custom Product taxonomy<\/figcaption><\/div><\/figure>\n<\/div>","protected":false},"author":17621,"featured_media":1712581,"template":"","related-lesson":[8403,8445],"class_list":["post-1673097","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-custom-types","related-lesson-e-commerce"],"_links":{"self":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1673097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson"}],"about":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/types\/course-lesson"}],"author":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/users\/17621"}],"version-history":[{"count":8,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1673097\/revisions"}],"predecessor-version":[{"id":1817285,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1673097\/revisions\/1817285"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media\/1712581"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media?parent=1673097"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/related-lesson?post=1673097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}