{"id":37,"date":"2019-01-25T13:24:15","date_gmt":"2019-01-25T13:24:15","guid":{"rendered":"https:\/\/websitedeveloperdubai.com\/blog\/?p=37"},"modified":"2019-07-07T10:17:45","modified_gmt":"2019-07-07T10:17:45","slug":"how-to-add-custom-taxonomy-to-woocommerce-product-post-type","status":"publish","type":"post","link":"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/","title":{"rendered":"How to add Custom Taxonomy to Woocommerce Product post type"},"content":{"rendered":"<p>Custom taxonomy is usually used for storing more data and to show more details about the product.<br \/>\nFor example if you selling art and you want to show the artist name for the painting then custom taxonomy would be quite a\u00a0 good option for you to use as you can add description about the artist so on so forth.<\/p>\n<p>Here&#8217;s how easily you can add custom taxonomy to your woocommerce product post type.<\/p>\n<p>You have to add the following code to your function.php in your theme file.<\/p>\n<pre>add_action( 'init', 'custom_taxonomy_Item' );\r\n\r\n\/\/ Register Custom Taxonomy\r\nfunction custom_taxonomy_Item() {\r\n\r\n$labels = array(\r\n'name' =&gt; 'Artists',\r\n'singular_name' =&gt; 'Artist',\r\n'menu_name' =&gt; 'Artist',\r\n'all_items' =&gt; 'All Artist',\r\n'parent_item' =&gt; 'Parent Artist',\r\n'parent_item_colon' =&gt; 'Parent Artist:',\r\n'new_item_name' =&gt; 'New Artist Name',\r\n'add_new_item' =&gt; 'Add New Artist',\r\n'edit_item' =&gt; 'Edit Artist',\r\n'update_item' =&gt; 'Update Artist',\r\n'separate_items_with_commas' =&gt; 'Separate Artist with commas',\r\n'search_items' =&gt; 'Search Artist',\r\n'add_or_remove_items' =&gt; 'Add or remove Artist',\r\n'choose_from_most_used' =&gt; 'Choose from the most popular Artist',\r\n);\r\n$args = array(\r\n'labels' =&gt; $labels,\r\n'hierarchical' =&gt; true,\r\n'public' =&gt; true,\r\n'show_ui' =&gt; true,\r\n'show_admin_column' =&gt; true,\r\n'show_in_nav_menus' =&gt; true,\r\n'show_tagcloud' =&gt; true,\r\n);\r\nregister_taxonomy( 'artist', 'product', $args );\r\n}<\/pre>\n<p><a href=\"https:\/\/websitedeveloperdubai.com\/blog\/wp-content\/uploads\/2019\/06\/Screen-Shot-2019-06-25-at-5.22.42-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-38 size-medium alignnone\" style=\"margin: 0;\" src=\"https:\/\/websitedeveloperdubai.com\/blog\/wp-content\/uploads\/2019\/06\/Screen-Shot-2019-06-25-at-5.22.42-PM-300x173.png\" alt=\"add taxonomy\" width=\"300\" height=\"173\" srcset=\"https:\/\/websitedeveloperdubai.com\/blog\/wp-content\/uploads\/2019\/06\/Screen-Shot-2019-06-25-at-5.22.42-PM-300x173.png 300w, https:\/\/websitedeveloperdubai.com\/blog\/wp-content\/uploads\/2019\/06\/Screen-Shot-2019-06-25-at-5.22.42-PM-600x346.png 600w, https:\/\/websitedeveloperdubai.com\/blog\/wp-content\/uploads\/2019\/06\/Screen-Shot-2019-06-25-at-5.22.42-PM.png 632w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>You just have to change the taxonomy name as per your needs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Custom taxonomy is usually used for storing more data and to show more details about the product. For example if you selling art and you want to show the artist name for the painting then custom taxonomy would be quite a\u00a0 good option for you to use as you can add description about the artist&#8230; <span class=\"more\"><a class=\"more-link\" href=\"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/\">Continue reading <span class=\"meta-nav\">&#8594;<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,3,5,11],"tags":[18,17,16,28,15,29,12,13,14],"class_list":["post-37","post","type-post","status-publish","format-standard","hentry","category-front-end-development","category-woocommerce","category-woocommerce-customization","category-wordpress-development","tag-ecommerce-developer-abudhabi","tag-ecommerce-developer-dubai","tag-freelance-website-developer-in-dubai","tag-web-design-dubai","tag-webdeveloper-in-dubai","tag-website-design-dubai","tag-woocommerce-developer-in-dubai","tag-wordpress-developer-abudhabi","tag-wordpress-developer-in-dubai"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to add Custom Taxonomy to Woocommerce Product post type - Freelance Web Designer Based In Dubai<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to add Custom Taxonomy to Woocommerce Product post type - Freelance Web Designer Based In Dubai\" \/>\n<meta property=\"og:description\" content=\"Custom taxonomy is usually used for storing more data and to show more details about the product. For example if you selling art and you want to show the artist name for the painting then custom taxonomy would be quite a\u00a0 good option for you to use as you can add description about the artist... Continue reading &#8594;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/\" \/>\n<meta property=\"og:site_name\" content=\"Freelance Web Designer Based In Dubai\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-25T13:24:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-07-07T10:17:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/websitedeveloperdubai.com\/blog\/wp-content\/uploads\/2019\/06\/Screen-Shot-2019-06-25-at-5.22.42-PM.png\" \/>\n\t<meta property=\"og:image:width\" content=\"632\" \/>\n\t<meta property=\"og:image:height\" content=\"364\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Muhammad Salman\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Muhammad Salman\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/\"},\"author\":{\"name\":\"Muhammad Salman\",\"@id\":\"https:\/\/websitedeveloperdubai.com\/blog\/#\/schema\/person\/d03c75e687fa5166b71332c342daf8ff\"},\"headline\":\"How to add Custom Taxonomy to Woocommerce Product post type\",\"datePublished\":\"2019-01-25T13:24:15+00:00\",\"dateModified\":\"2019-07-07T10:17:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/\"},\"wordCount\":111,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/websitedeveloperdubai.com\/blog\/wp-content\/uploads\/2019\/06\/Screen-Shot-2019-06-25-at-5.22.42-PM-300x173.png\",\"keywords\":[\"Ecommerce Developer Abudhabi\",\"Ecommerce Developer Dubai\",\"Freelance website developer in dubai\",\"Web Design Dubai\",\"Webdeveloper in dubai\",\"Website Design Dubai\",\"Woocommerce Developer in Dubai\",\"Wordpress Developer Abudhabi\",\"Wordpress Developer in Dubai\"],\"articleSection\":[\"Front End Development\",\"Woocommerce\",\"Woocommerce Customization\",\"Wordpress Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/\",\"url\":\"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/\",\"name\":\"How to add Custom Taxonomy to Woocommerce Product post type - Freelance Web Designer Based In Dubai\",\"isPartOf\":{\"@id\":\"https:\/\/websitedeveloperdubai.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/websitedeveloperdubai.com\/blog\/wp-content\/uploads\/2019\/06\/Screen-Shot-2019-06-25-at-5.22.42-PM-300x173.png\",\"datePublished\":\"2019-01-25T13:24:15+00:00\",\"dateModified\":\"2019-07-07T10:17:45+00:00\",\"author\":{\"@id\":\"https:\/\/websitedeveloperdubai.com\/blog\/#\/schema\/person\/d03c75e687fa5166b71332c342daf8ff\"},\"breadcrumb\":{\"@id\":\"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/#primaryimage\",\"url\":\"https:\/\/websitedeveloperdubai.com\/blog\/wp-content\/uploads\/2019\/06\/Screen-Shot-2019-06-25-at-5.22.42-PM.png\",\"contentUrl\":\"https:\/\/websitedeveloperdubai.com\/blog\/wp-content\/uploads\/2019\/06\/Screen-Shot-2019-06-25-at-5.22.42-PM.png\",\"width\":632,\"height\":364,\"caption\":\"add taxonomy\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/websitedeveloperdubai.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to add Custom Taxonomy to Woocommerce Product post type\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/websitedeveloperdubai.com\/blog\/#website\",\"url\":\"https:\/\/websitedeveloperdubai.com\/blog\/\",\"name\":\"Freelance Web Designer Based In Dubai\",\"description\":\"websitedeveloperdubai.com\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/websitedeveloperdubai.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/websitedeveloperdubai.com\/blog\/#\/schema\/person\/d03c75e687fa5166b71332c342daf8ff\",\"name\":\"Muhammad Salman\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/websitedeveloperdubai.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/78683b45d01c7bd143acc6275935d817?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/78683b45d01c7bd143acc6275935d817?s=96&d=mm&r=g\",\"caption\":\"Muhammad Salman\"},\"url\":\"https:\/\/websitedeveloperdubai.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to add Custom Taxonomy to Woocommerce Product post type - Freelance Web Designer Based In Dubai","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:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/","og_locale":"en_US","og_type":"article","og_title":"How to add Custom Taxonomy to Woocommerce Product post type - Freelance Web Designer Based In Dubai","og_description":"Custom taxonomy is usually used for storing more data and to show more details about the product. For example if you selling art and you want to show the artist name for the painting then custom taxonomy would be quite a\u00a0 good option for you to use as you can add description about the artist... Continue reading &#8594;","og_url":"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/","og_site_name":"Freelance Web Designer Based In Dubai","article_published_time":"2019-01-25T13:24:15+00:00","article_modified_time":"2019-07-07T10:17:45+00:00","og_image":[{"width":632,"height":364,"url":"https:\/\/websitedeveloperdubai.com\/blog\/wp-content\/uploads\/2019\/06\/Screen-Shot-2019-06-25-at-5.22.42-PM.png","type":"image\/png"}],"author":"Muhammad Salman","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Muhammad Salman","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/#article","isPartOf":{"@id":"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/"},"author":{"name":"Muhammad Salman","@id":"https:\/\/websitedeveloperdubai.com\/blog\/#\/schema\/person\/d03c75e687fa5166b71332c342daf8ff"},"headline":"How to add Custom Taxonomy to Woocommerce Product post type","datePublished":"2019-01-25T13:24:15+00:00","dateModified":"2019-07-07T10:17:45+00:00","mainEntityOfPage":{"@id":"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/"},"wordCount":111,"commentCount":0,"image":{"@id":"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/#primaryimage"},"thumbnailUrl":"https:\/\/websitedeveloperdubai.com\/blog\/wp-content\/uploads\/2019\/06\/Screen-Shot-2019-06-25-at-5.22.42-PM-300x173.png","keywords":["Ecommerce Developer Abudhabi","Ecommerce Developer Dubai","Freelance website developer in dubai","Web Design Dubai","Webdeveloper in dubai","Website Design Dubai","Woocommerce Developer in Dubai","Wordpress Developer Abudhabi","Wordpress Developer in Dubai"],"articleSection":["Front End Development","Woocommerce","Woocommerce Customization","Wordpress Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/","url":"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/","name":"How to add Custom Taxonomy to Woocommerce Product post type - Freelance Web Designer Based In Dubai","isPartOf":{"@id":"https:\/\/websitedeveloperdubai.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/#primaryimage"},"image":{"@id":"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/#primaryimage"},"thumbnailUrl":"https:\/\/websitedeveloperdubai.com\/blog\/wp-content\/uploads\/2019\/06\/Screen-Shot-2019-06-25-at-5.22.42-PM-300x173.png","datePublished":"2019-01-25T13:24:15+00:00","dateModified":"2019-07-07T10:17:45+00:00","author":{"@id":"https:\/\/websitedeveloperdubai.com\/blog\/#\/schema\/person\/d03c75e687fa5166b71332c342daf8ff"},"breadcrumb":{"@id":"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/#primaryimage","url":"https:\/\/websitedeveloperdubai.com\/blog\/wp-content\/uploads\/2019\/06\/Screen-Shot-2019-06-25-at-5.22.42-PM.png","contentUrl":"https:\/\/websitedeveloperdubai.com\/blog\/wp-content\/uploads\/2019\/06\/Screen-Shot-2019-06-25-at-5.22.42-PM.png","width":632,"height":364,"caption":"add taxonomy"},{"@type":"BreadcrumbList","@id":"https:\/\/websitedeveloperdubai.com\/blog\/how-to-add-custom-taxonomy-to-woocommerce-product-post-type\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/websitedeveloperdubai.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to add Custom Taxonomy to Woocommerce Product post type"}]},{"@type":"WebSite","@id":"https:\/\/websitedeveloperdubai.com\/blog\/#website","url":"https:\/\/websitedeveloperdubai.com\/blog\/","name":"Freelance Web Designer Based In Dubai","description":"websitedeveloperdubai.com","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/websitedeveloperdubai.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/websitedeveloperdubai.com\/blog\/#\/schema\/person\/d03c75e687fa5166b71332c342daf8ff","name":"Muhammad Salman","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/websitedeveloperdubai.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/78683b45d01c7bd143acc6275935d817?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/78683b45d01c7bd143acc6275935d817?s=96&d=mm&r=g","caption":"Muhammad Salman"},"url":"https:\/\/websitedeveloperdubai.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/websitedeveloperdubai.com\/blog\/wp-json\/wp\/v2\/posts\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/websitedeveloperdubai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/websitedeveloperdubai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/websitedeveloperdubai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/websitedeveloperdubai.com\/blog\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":6,"href":"https:\/\/websitedeveloperdubai.com\/blog\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":43,"href":"https:\/\/websitedeveloperdubai.com\/blog\/wp-json\/wp\/v2\/posts\/37\/revisions\/43"}],"wp:attachment":[{"href":"https:\/\/websitedeveloperdubai.com\/blog\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/websitedeveloperdubai.com\/blog\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/websitedeveloperdubai.com\/blog\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}