{"id":4554,"date":"2018-06-22T18:53:40","date_gmt":"2018-06-22T18:53:40","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2018\/06\/22\/how-to-create-and-use-custom-taxonomies\/"},"modified":"2021-08-16T22:27:01","modified_gmt":"2021-08-17T02:27:01","slug":"how-to-create-and-use-custom-taxonomies","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/","title":{"rendered":"How to Create and Use Custom Taxonomies"},"content":{"rendered":"<p>In this article, we&#8217;re going to show how you can <strong>create and use custom     taxonomies<\/strong> in your WordPress posts. We&#8217;ll also explain what custom taxonomies are and how they&#8217;re used in WordPress. In order to create our taxonomies, we&#8217;ll be using the <a href=\"https:\/\/wordpress.org\/plugins\/custom-post-type-ui\/\">Custom Post Type UI plugin<\/a>.<\/p>\n<h2 id=\"org642f3f7\">What is a Custom Taxonomy?<\/h2>\n<p>Taxononies are what WordPress uses to organize your posts. You may already be familiar with the default taxonomies that come with WordPress: categories and tags.<\/p>\n<p>You use categories and tags alongside posts. For example, if your posts are about music you may have a category called <i>Rock and Roll<\/i> and a sub-category for <i>1950s<\/i>. You may also have tags like <i>Buddy Holly<\/i>, <i>The Drifters<\/i>, or <i>Elvis Presley<\/i> associated with various posts. These help your readers know what the post is about and find other related posts. This can also help your site be more easily readable by search engines.<\/p>\n<h3 id=\"org8208e11\">Hierarchical<\/h3>\n<p>Taxonomies can have <i>parent-child relationships<\/i> that make them &#8220;Hierarchical&#8221;.<\/p>\n<p>For example, categories can have sub-categories and sub-categories can have sub-categories of their own and so forth:<\/p>\n<ul class=\"org-ul\">\n<li>Music (Parent)\n<ul class=\"org-ul\">\n<li>Classical (Child)<\/li>\n<li>Rock (Child)<\/li>\n<li>Hip Hop (Child)<\/li>\n<\/ul>\n<\/li>\n<li>Movies (Parent)\n<ul class=\"org-ul\">\n<li>Action\/Adventure (Child)<\/li>\n<li>Sci-fi (Child)\n<ul class=\"org-ul\">\n<li>Space Opera (sub-Child)<\/li>\n<li>Flying Saucers (sub-Child)<\/li>\n<\/ul>\n<\/li>\n<li>Documentary (Child)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Notice above that parent and child relationships are virtually unlimited in terms of how complex the hierarchy can be. Child nodes can have their own children. You determine the level of depth required for keeping your site organized and user-friendly.<\/p>\n<h3 id=\"org62cb85a\">Non-hierarchical<\/h3>\n<p>Taxonomies can also be non-hierarchical, meaning they have no parent-child relationships. This is how post tags are used. In this scheme, each term associated with a post is of equal value. Again, how you choose to use these terms depends on how you want to organize your post content.<\/p>\n<h2 id=\"org13c1606\">How to Register Taxonomies<\/h2>\n<p>For our demonstration, we&#8217;re going to be using the Custom Post Type UI plugin. In addition to creating custom post types, this plugin lets you easily create taxonomies that you can associate with your post types.<\/p>\n<p>For example, you can create a custom taxonomy for your default WordPress posts or a new category or tag for a custom post type.<\/p>\n<ol class=\"article_list\">\n<li>Log into your <a href=\"\/support\/edu\/wordpress\/logging-into-wordpress-dashboard\/\">WordPress Dashboard<\/a><\/li>\n<li>Choose <b>Add\/Edit Taxonomies<\/b> under <em>CPT UI<\/em> (left panel)<\/li>\n<li>Fill in the label fields<\/li>\n<\/ol>\n<p>Be sure to pay attention to which labels are singular and plural. This will make usage of your taxonomy within the WordPress interface easier.<\/p>\n<h3 id=\"org43b565c\">Which Settings Should I Use?<\/h3>\n<p>For the most part, the default settings are acceptable for creating a new taxonomy. Here are some of the settings you may want to pay closer attention to in customizing your taxonomy for your needs:<\/p>\n<table border=\"2\" cellpadding=\"6\" cellspacing=\"0\" frame=\"hsides\" rules=\"groups\">\n<colgroup>\n<col class=\"org-left\">\n<col class=\"org-left\"> <\/colgroup>\n<thead>\n<tr>\n<th class=\"org-left\" scope=\"col\">Setting<\/th>\n<th class=\"org-left\" scope=\"col\">Purpose<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td class=\"org-left\">Taxonomy slug<\/td>\n<td class=\"org-left\">Part of the URL structure of this taxonomy (will also display an archive page)<\/td>\n<\/tr>\n<tr>\n<td class=\"org-left\">Attach to Post Type<\/td>\n<td class=\"org-left\">To which post type will this taxonomy apply?<\/td>\n<\/tr>\n<tr>\n<td class=\"org-left\">Hierarchical<\/td>\n<td class=\"org-left\">Will this taxonomy have parent-child relationships (like a category) or remain non-hierarchical (like a tag)?<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"orge3ac834\">Using Your Custom Taxonomy<\/h2>\n<p>You should now see your custom taxonomy available under the post type it applies to. Here you will be able to manage your custom taxonomy by adding new ones and editing the ones you&#8217;ve created.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we&#8217;re going to show how you can create and use custom taxonomies in your WordPress posts. We&#8217;ll also explain what custom taxonomies are and how they&#8217;re used in WordPress. In order to create our taxonomies, we&#8217;ll be using the Custom Post Type UI plugin. What is a Custom Taxonomy? Taxononies are what<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/\"> Read More ><\/a><\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[56],"tags":[],"class_list":["post-4554","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create and Use Custom Taxonomies | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"In this article, we&#039;re going to be working with custom taxonomies in WordPress.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create and Use Custom Taxonomies | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"In this article, we&#039;re going to be working with custom taxonomies in WordPress.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-22T18:53:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-17T02:27:01+00:00\" \/>\n<meta name=\"author\" content=\"Christopher Maiorana\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christopher Maiorana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/\"},\"author\":{\"name\":\"Christopher Maiorana\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\"},\"headline\":\"How to Create and Use Custom Taxonomies\",\"datePublished\":\"2018-06-22T18:53:40+00:00\",\"dateModified\":\"2021-08-17T02:27:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/\"},\"wordCount\":537,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"WordPress Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/\",\"name\":\"How to Create and Use Custom Taxonomies | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2018-06-22T18:53:40+00:00\",\"dateModified\":\"2021-08-17T02:27:01+00:00\",\"description\":\"In this article, we're going to be working with custom taxonomies in WordPress.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create and Use Custom Taxonomies\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\",\"name\":\"Christopher Maiorana\",\"description\":\"Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create and Use Custom Taxonomies | InMotion Hosting","description":"In this article, we're going to be working with custom taxonomies in WordPress.","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:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/","og_locale":"en_US","og_type":"article","og_title":"How to Create and Use Custom Taxonomies | InMotion Hosting","og_description":"In this article, we're going to be working with custom taxonomies in WordPress.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2018-06-22T18:53:40+00:00","article_modified_time":"2021-08-17T02:27:01+00:00","author":"Christopher Maiorana","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Christopher Maiorana","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/"},"author":{"name":"Christopher Maiorana","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f"},"headline":"How to Create and Use Custom Taxonomies","datePublished":"2018-06-22T18:53:40+00:00","dateModified":"2021-08-17T02:27:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/"},"wordCount":537,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["WordPress Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/","name":"How to Create and Use Custom Taxonomies | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2018-06-22T18:53:40+00:00","dateModified":"2021-08-17T02:27:01+00:00","description":"In this article, we're going to be working with custom taxonomies in WordPress.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-create-and-use-custom-taxonomies\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Create and Use Custom Taxonomies"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f","name":"Christopher Maiorana","description":"Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.","sameAs":["https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=4554"}],"version-history":[{"count":2,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4554\/revisions"}],"predecessor-version":[{"id":83674,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4554\/revisions\/83674"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=4554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=4554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=4554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}