{"id":92240,"date":"2021-06-23T10:00:00","date_gmt":"2021-06-23T04:30:00","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?p=92240"},"modified":"2023-12-28T16:12:09","modified_gmt":"2023-12-28T10:42:09","slug":"wordpress-custom-taxonomies","status":"publish","type":"post","link":"https:\/\/git-staging.wpastra.com\/es\/guides-and-tutorials\/wordpress-custom-taxonomies\/","title":{"rendered":"C\u00f3mo crear y personalizar la taxonom\u00eda personalizada de WordPress - Paso a Paso"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<p><strong>Probablemente haya o\u00eddo la palabra <em>taxonom\u00eda <\/em>utilizado antes, probablemente en relaci\u00f3n con las entradas de WordPress. <\/strong>\u00bfQu\u00e9 es una taxonom\u00eda y para qu\u00e9 se utiliza en WordPress?<\/p>\n\n\n\n<p>En este post, vamos a explicar lo que es una taxonom\u00eda y le mostrar\u00e1 c\u00f3mo crear uno personalizado para su propio sitio. Las taxonom\u00edas son una forma realmente sencilla pero \u00fatil de a\u00f1adir funcionalidad y personalizaci\u00f3n extra a tu sitio web.<\/p>\n\n\n\n<p>\u00a1Organic\u00e9monos!<\/p>\n\n\n\t\t\t\t<div class=\"wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-df7e1cc1\"\n\t\t\t\t\tdata-scroll= \"1\"\n\t\t\t\t\tdata-offset= \"30\"\n\t\t\t\t\tstyle=\"\"\n\t\t\t\t>\n\t\t\t\t<div class=\"uagb-toc__wrap\">\n\t\t\t\t\t\t<div class=\"uagb-toc__title\">\n\t\t\t\t\t\t\tTabla de contenidos\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-toc__list-wrap\">\n\t\t\t\t\t\t<ol class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#what-is-a-taxonomy\" class=\"uagb-toc-link__trigger\">\u00bfQu\u00e9 es una taxonom\u00eda?<\/a><li class=\"uagb-toc__list\"><a href=\"#how-to-create-a-custom-taxonomy-in-wordpress\" class=\"uagb-toc-link__trigger\">C\u00f3mo crear una taxonom\u00eda personalizada en WordPress<\/a><li class=\"uagb-toc__list\"><a href=\"#how-to-display-taxonomies-on-your-site\" class=\"uagb-toc-link__trigger\">C\u00f3mo mostrar taxonom\u00edas en su sitio web<\/a><li class=\"uagb-toc__list\"><a href=\"#woocommerce-and-taxonomies\" class=\"uagb-toc-link__trigger\">WooCommerce y Taxonom\u00edas<\/a><li class=\"uagb-toc__list\"><a href=\"#conclusion\" class=\"uagb-toc-link__trigger\">Conclusi\u00f3n<\/a><\/ol>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\n\n\n<h2 class=\"wp-block-heading\">\u00bfQu\u00e9 es una taxonom\u00eda?<\/h2>\n\n\n\n<p>A <em>taxonom\u00eda<\/em> es s\u00f3lo una palabra cient\u00edfica para decir <em>clasificaci\u00f3n<\/em>. Las taxonom\u00edas se utilizan en biolog\u00eda para separar a los animales de las plantas, o a ciertos tipos de animales entre s\u00ed. He aqu\u00ed un ejemplo sencillo:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><em>Vida<\/em><\/li>\n\n\n\n<li><em>Animales<\/em>\n<ul class=\"wp-block-list\">\n<li><em>Perros<\/em><\/li>\n\n\n\n<li><em>Humanos<\/em><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><em>Plantas<\/em>\n<ul class=\"wp-block-list\">\n<li><em>Flores<\/em>\n<ul class=\"wp-block-list\">\n<li><em>Girasoles<\/em><\/li>\n\n\n\n<li><em>Rosas<\/em><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><em>\u00c1rboles<\/em><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>El art\u00edculo <em>Perros<\/em>por ejemplo, se incluye en <em>Animales, <\/em>que se incluye en <em>La vida. <\/em>Por lo tanto, cualquier art\u00edculo etiquetado con <em>Perros <\/em>es miembro de estas tres \"categor\u00edas\" jer\u00e1rquicas al mismo tiempo.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Taxonom\u00edas en WordPress: Categor\u00edas y etiquetas<\/h3>\n\n\n\n<p>Las taxonom\u00edas se utilizan mucho en WordPress, concretamente para <strong>Puestos<\/strong>. En WordPress, hay dos sistemas de taxonom\u00eda incorporados por defecto para su uso con Entradas: <strong>Categor\u00edas<\/strong> y <strong>Etiquetas<\/strong>. Seguro que ya has utilizado ambos para organizar tus contenidos.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"666\" height=\"336\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/WordPress-default-taxonomy.jpg\" alt=\"WordPress default taxonomy\" class=\"wp-image-92343\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/WordPress-default-taxonomy.jpg 666w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/WordPress-default-taxonomy-300x151.jpg 300w\" sizes=\"(max-width: 666px) 100vw, 666px\" \/><\/figure>\n\n\n\n<p><strong>Pero, \u00bfy si quieres que tus entradas tengan una estructura m\u00e1s compleja?<\/strong> \u00bfY si quieres <a href=\"https:\/\/git-staging.wpastra.com\/es\/guides-and-tutorials\/wordpress-custom-page-template\/\" target=\"_blank\" rel=\"noreferrer noopener\">utilizar tipos de entrada personalizados<\/a>\u00bfy luego ordenarlos con algo m\u00e1s espec\u00edfico que categor\u00edas o etiquetas? Por ejemplo, es posible que desee tener un tipo de entrada personalizado llamado <em>Receta<\/em> y luego ordenarlo por <em>Ingrediente. <\/em><\/p>\n\n\n\n<p>O bien, puede que desee dividir sus entradas en \u00e1reas separadas en el backend de su sitio de WordPress con el fin de hacer m\u00e1s f\u00e1cil la gesti\u00f3n de su contenido.<\/p>\n\n\n\n<p>Ah\u00ed es donde entran en juego las taxonom\u00edas personalizadas. Con una taxonom\u00eda personalizada, puede crear estructuras complejas que dividan su contenido en diferentes secciones. Estas tambi\u00e9n pueden organizarse jer\u00e1rquicamente, como nuestra taxonom\u00eda Life anterior.<\/p>\n\n\n\n<p>Las taxonom\u00edas personalizadas tambi\u00e9n pueden facilitar la vida a sus clientes. Puede crear tipos de entradas y taxonom\u00edas personalizadas para ellos, que luego se muestran en la barra lateral de WordPress.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Plano vs. Jer\u00e1rquico<\/h3>\n\n\n\n<p>Al crear una taxonom\u00eda, puede hacerlas planas o jer\u00e1rquicas. \u00bfCu\u00e1l es la diferencia? Es simple: una taxonom\u00eda plana tiene un solo nivel, mientras que una jer\u00e1rquica tiene muchos niveles.<\/p>\n\n\n\n<p>En WordPress,<em> etiquetas <\/em>son planas, mientras que <em>categor\u00edas<\/em> son jer\u00e1rquicas. En otras palabras, las categor\u00edas se pueden anidar unas dentro de otras, mientras que las etiquetas est\u00e1n al mismo nivel.<\/p>\n\n\n\n<p><strong>Taxonom\u00eda plana<\/strong><\/p>\n\n\n\n<p>En una taxonom\u00eda plana, todo est\u00e1 al mismo nivel.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Pl\u00e1tanos<\/li>\n\n\n\n<li>Limones<\/li>\n\n\n\n<li>Pi\u00f1as<\/li>\n<\/ul>\n\n\n\n<p><strong>Taxonom\u00eda jer\u00e1rquica<\/strong><\/p>\n\n\n\n<p>En una taxonom\u00eda jer\u00e1rquica, los niveles pueden tener niveles superiores o inferiores.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Frutas\n<ul class=\"wp-block-list\">\n<li>Frutas amarillas\n<ul class=\"wp-block-list\">\n<li>Pl\u00e1tanos\n<ul class=\"wp-block-list\">\n<li>Pl\u00e1tanos Cavendish<\/li>\n\n\n\n<li>Pl\u00e1tanos Pisang Raja<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Limones<\/li>\n\n\n\n<li>Pi\u00f1as<\/li>\n\n\n\n<li>Pimientos amarillos<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-92240-_cx2ymizdh0nr\"><\/a>\u00bfQui\u00e9n utiliza taxonom\u00edas?<\/h3>\n\n\n\n<p><a href=\"https:\/\/variety.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Variety.com<\/a> es un gran ejemplo. Puesto que cubren un <em>variedad<\/em> de diferentes temas, es natural que los tengan clasificados en diferentes secciones como <em>CINE, TV, M\u00daSICA <\/em>y <em>EVENTOS.<\/em>Las taxonom\u00edas se utilizan en una gran variedad de sitios web, sobre todo en los que tienen contenidos muy variados.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"1000\" height=\"240\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/variety-categories-example.jpg\" alt=\"variety categories example\" class=\"wp-image-92347\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/variety-categories-example.jpg 1000w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/variety-categories-example-300x72.jpg 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/variety-categories-example-768x184.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p>Al organizar su sitio en taxonom\u00edas separadas, les resulta m\u00e1s f\u00e1cil gestionar los cientos de entradas, v\u00eddeos, im\u00e1genes y otros contenidos diferentes que publican cada semana.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">C\u00f3mo crear una taxonom\u00eda personalizada en WordPress<\/h2>\n\n\n\n<p>Ahora que lo sabes <em>qu\u00e9<\/em> una taxonom\u00eda es y <em>por qu\u00e9<\/em> deber\u00eda usar una, \u00a1vamos a ver c\u00f3mo usarla! Hay dos maneras de a\u00f1adir una taxonom\u00eda:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Con un plugin<\/li>\n\n\n\n<li>Manualmente con c\u00f3digo<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-92240-_qryuatq1fed7\"><\/a>M\u00e9todo 1: Con un plugin<\/h3>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"900\" height=\"410\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Pods-Custom-Content-Types-and-Fields-WordPress-plugin.jpg\" alt=\"Pods Custom Content Types and Fields WordPress plugin\" class=\"wp-image-92352\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Pods-Custom-Content-Types-and-Fields-WordPress-plugin.jpg 900w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Pods-Custom-Content-Types-and-Fields-WordPress-plugin-300x137.jpg 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Pods-Custom-Content-Types-and-Fields-WordPress-plugin-768x350.jpg 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/figure>\n\n\n\n<p>La forma m\u00e1s f\u00e1cil de a\u00f1adir una taxonom\u00eda personalizada a su sitio es mediante el uso de un plugin. Hay muchos disponibles, pero los dos m\u00e1s populares son <a href=\"https:\/\/wordpress.org\/plugins\/custom-post-type-ui\/\" target=\"_blank\" rel=\"noreferrer noopener\">Interfaz de usuario personalizada<\/a> y <a href=\"https:\/\/wordpress.org\/plugins\/pods\/\" target=\"_blank\" rel=\"noreferrer noopener\">Vainas.<\/a> Como es menos complejo y m\u00e1s f\u00e1cil de usar, usaremos Pods para este tutorial.<\/p>\n\n\n\n<p>Vamos a utilizarlo.<\/p>\n\n\n\n<p>Para este ejemplo, vamos a imaginar que est\u00e1 creando un sitio web que ofrece recetas. Primero, crearemos un tipo de entrada personalizado llamado <em>Recetas.<\/em> A continuaci\u00f3n, crearemos una taxonom\u00eda personalizada para organizar diferentes aspectos de cada receta, como por ejemplo <em>Ingredientes, Alergias, Vegetariano\/no vegetariano, <\/em>y cosas similares.<\/p>\n\n\n\n<p><strong>Paso 1: Descargar e instalar el plugin<\/strong><\/p>\n\n\n\n<p>En primer lugar, descargue, instale y active el plugin <a href=\"https:\/\/wordpress.org\/plugins\/pods\/\" target=\"_blank\" rel=\"noreferrer noopener\">del repositorio de WordPress.<\/a><\/p>\n\n\n\n<p><strong>Paso 2: Crear un nuevo tipo de entrada personalizada<\/strong><\/p>\n\n\n\n<p>Para nuestro ejemplo, primero tendremos que crear <em>un nuevo tipo de entrada personalizado<\/em>. Ir a <strong>Pods Admin &gt; A\u00f1adir nuevo<\/strong> en la barra lateral de WordPress.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"609\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Pods-create-new-custom-post-types.jpg\" alt=\"Pods create new custom post types\" class=\"wp-image-92350\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Pods-create-new-custom-post-types.jpg 1000w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Pods-create-new-custom-post-types-300x183.jpg 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Pods-create-new-custom-post-types-768x468.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p>Ahora ver\u00e1s dos opciones: <strong>Crear nuevo <\/strong>y <strong>Ampliar la existente. <\/strong>Haga clic en <strong>Crear nuevo.<\/strong><\/p>\n\n\n\n<p>Ahora elige <em>qu\u00e9 <\/em>que desea crear. Primero crearemos un Custom Post type<em>. <\/em>En <em>Etiqueta singular, <\/em>tipo <em>Receta<\/em> y bajo <em>Etiqueta Plural<\/em>Tipo <em>Recetas. <\/em>A continuaci\u00f3n, haga clic en <strong>Siguiente paso.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"578\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/pods-custom-post-type.jpg\" alt=\"pods custom post type\" class=\"wp-image-92364\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/pods-custom-post-type.jpg 900w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/pods-custom-post-type-300x193.jpg 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/pods-custom-post-type-768x493.jpg 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/figure>\n\n\n\n<p>Ver\u00e1 un mensaje de confirmaci\u00f3n de que su pod se ha creado correctamente. Ahora necesitamos crear una nueva Taxonom\u00eda. Vuelva a <strong>Pods &gt; A\u00f1adir nuevo.<\/strong><\/p>\n\n\n\n<p>Haga clic en <strong>Crear nuevo <\/strong>de nuevo. Esta vez, seleccione <strong>Taxonom\u00eda personalizada <\/strong>en Tipo de contenido. A continuaci\u00f3n, escriba <em>Ingrediente<\/em> y <em>Ingredientes<\/em>. A continuaci\u00f3n, haga clic en <em>Siguiente paso.<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"666\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Pods-create-custom-taxonomy.jpg\" alt=\"Pods create custom taxonomy\" class=\"wp-image-92349\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Pods-create-custom-taxonomy.jpg 1000w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Pods-create-custom-taxonomy-300x200.jpg 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Pods-create-custom-taxonomy-768x511.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p>Como paso final, necesitamos vincular el Custom Post Type a la taxonom\u00eda. Vuelva a la p\u00e1gina Editar Pods y haga clic en <strong>Editar<\/strong> en su Custom Post Type (<em>Recetas <\/em>en nuestro ejemplo).<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"654\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/edit-created-custom-post-type.jpg\" alt=\"edit created custom post type\" class=\"wp-image-92354\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/edit-created-custom-post-type.jpg 1000w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/edit-created-custom-post-type-300x196.jpg 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/edit-created-custom-post-type-768x502.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p>Ahora ve al <strong>Opciones avanzadas<\/strong> ficha.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"897\" height=\"394\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/edit-created-custom-post-type-2.jpg\" alt=\"edit created custom post type 2\" class=\"wp-image-92355\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/edit-created-custom-post-type-2.jpg 897w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/edit-created-custom-post-type-2-300x132.jpg 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/edit-created-custom-post-type-2-768x337.jpg 768w\" sizes=\"(max-width: 897px) 100vw, 897px\" \/><\/figure>\n\n\n\n<p>Despl\u00e1cese hasta <strong>Taxonom\u00edas integradas <\/strong>y marque la casilla junto a la taxonom\u00eda reci\u00e9n creada. En nuestro ejemplo, es <em>Ingredientes.<\/em><\/p>\n\n\n\n<p>Ahora vamos a probarlo. Si miras en tu barra lateral, ver\u00e1s un nuevo elemento: tu tipo de entrada personalizada con la taxonom\u00eda personalizada (<em>Ingredientes<\/em>) debajo. \u00a1Qu\u00e9 guay!<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"650\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Add-new-Ingredients.jpg\" alt=\"Add new Ingredients\" class=\"wp-image-92358\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Add-new-Ingredients.jpg 1200w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Add-new-Ingredients-300x163.jpg 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Add-new-Ingredients-1024x555.jpg 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Add-new-Ingredients-768x416.jpg 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p>Haga clic en Ingredientes para ver una lista de ellos. Ahora mismo, no tenemos ninguno. Vamos a a\u00f1adir uno. En la parte izquierda, rellena el formulario y crea un nuevo ingrediente. Para nuestro ejemplo, vamos a utilizar <em>Chocolate.<\/em><\/p>\n\n\n\n<p>A la derecha, <em>Chocolate <\/em>se mostrar\u00e1 ahora. Muy f\u00e1cil.<\/p>\n\n\n\n<p>Ahora vamos a crear un nuevo post en Recetas. Haga clic en <strong>A\u00f1adir nuevo.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"581\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Custom-taxonomy-and-custom-post-type.jpg\" alt=\"Custom taxonomy and custom post type\" class=\"wp-image-92353\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Custom-taxonomy-and-custom-post-type.jpg 1200w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Custom-taxonomy-and-custom-post-type-300x145.jpg 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Custom-taxonomy-and-custom-post-type-1024x496.jpg 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Custom-taxonomy-and-custom-post-type-768x372.jpg 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p>A la derecha, ver\u00e1 <em>Ingredientes<\/em> en la lista, con <em>Chocolate<\/em> como opci\u00f3n. Tenga en cuenta que esto es por lo general donde se agregan categor\u00edas a sus mensajes.<\/p>\n\n\n\n<p>Y ya est\u00e1. Para a\u00f1adir m\u00e1s elementos a su taxonom\u00eda, puede hacerlo manualmente mediante el bot\u00f3n <em>Ingredientes<\/em> o directamente desde el puesto.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">M\u00e9todo 2: Manualmente<\/h3>\n\n\n\n<p>Si eres desarrollador o no quieres utilizar un plugin de terceros, tambi\u00e9n puedes a\u00f1adir taxonom\u00edas personalizadas manualmente. En el siguiente ejemplo, te mostraremos c\u00f3mo a\u00f1adir una nueva taxonom\u00eda a tus entradas habituales de WordPress.<\/p>\n\n\n\n<p>En primer lugar, cree un archivo de texto en blanco en su ordenador utilizando un archivo <a href=\"https:\/\/git-staging.wpastra.com\/es\/resources\/best-text-editors\/\" target=\"_blank\" rel=\"noreferrer noopener\">programa editor de texto<\/a>. Pega en \u00e9l el siguiente c\u00f3digo, sustituyendo las variables por las que desees.<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>&lt;?php\n\/*\n* Plugin Name: Ingredients Taxonomy\n* Description: A short example showing how to add a taxonomy called Ingredients.\n* Version: 1.0\n* Author: wpastra.com\n* Author URI: https:\/\/git-staging.wpastra.com\/\n*\/\n \nfunction wporg_register_taxonomy_ingredients() {\n     $labels = array(\n         'name'              =&gt; _x( 'Ingredients', 'taxonomy general name' ),\n         'singular_name'     =&gt; _x( 'Ingredients', 'taxonomy singular name' ),\n         'search_items'      =&gt; __( 'Search Ingredients' ),\n         'all_items'         =&gt; __( 'All Ingredients' ),\n         'parent_item'       =&gt; __( 'Parent Ingredients' ),\n         'parent_item_colon' =&gt; __( 'Parent Ingredient:' ),\n         'edit_item'         =&gt; __( 'Edit Ingredient' ),\n         'update_item'       =&gt; __( 'Update Ingredient' ),\n         'add_new_item'      =&gt; __( 'Add New Ingredient' ),\n         'new_item_name'     =&gt; __( 'New Ingredient Name' ),\n         'menu_name'         =&gt; __( 'Ingredients' ),\n     );\n     $args   = array(\n         'hierarchical'      =&gt; true, \/\/ make it hierarchical (like categories)\n         'labels'            =&gt; $labels,\n         'show_ui'           =&gt; true,\n         'show_admin_column' =&gt; true,\n         'query_var'         =&gt; true,\n         'rewrite'           =&gt; &#091; 'slug' =&gt; 'ingredient' ],\n     );\n     register_taxonomy( 'ingredients', &#091; 'post' ], $args );\n}\nadd_action( 'init', 'wporg_register_taxonomy_ingredients' );\n?&gt;<\/code><\/pre>\n\n\n\n<p>Guarde el archivo como <em>ingredientes.php. <\/em>A continuaci\u00f3n, crea una carpeta, ponle un nombre y coloca el archivo de texto en esa carpeta. Comprime la carpeta en un archivo zip.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"221\" height=\"128\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/create-zip-file-with-for-custom-taxonomy.jpg\" alt=\"create zip file with for custom taxonomy\" class=\"wp-image-92360\" \/><\/figure>\n\n\n\n<p>Ahora, vaya a su sitio WordPress. Vaya a <strong>Plugins &gt; A\u00f1adir nuevo<\/strong> en tu barra lateral.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"365\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Upload-plugin-in-the-WordPress.jpg\" alt=\"Upload plugin in the WordPress\" class=\"wp-image-92346\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Upload-plugin-in-the-WordPress.jpg 1000w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Upload-plugin-in-the-WordPress-300x110.jpg 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Upload-plugin-in-the-WordPress-768x280.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p>Haga clic en <strong>Subir Plugin<\/strong> y selecciona tu archivo zip. A continuaci\u00f3n, act\u00edvalo.<\/p>\n\n\n\n<p>Ahora ver\u00e1s que Puestos tiene un nuevo elemento de submen\u00fa: Ingredientes. Haz clic en \u00e9l.<\/p>\n\n\n\n<p>Aqu\u00ed puede a\u00f1adir nuevos elementos a la taxonom\u00eda Ingredientes. Por ejemplo, a\u00f1adamos <em>Chocolate.<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"450\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Manually-created-taxonomy.jpg\" alt=\"Manually created taxonomy\" class=\"wp-image-92351\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Manually-created-taxonomy.jpg 1000w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Manually-created-taxonomy-300x135.jpg 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Manually-created-taxonomy-768x346.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p>Si ahora vamos y editamos un post, ver\u00e1s la taxonom\u00eda Ingredientes en la barra lateral, debajo de categor\u00edas.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"328\" height=\"216\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Custom-taxonomy-in-post-editing.jpg\" alt=\"Custom taxonomy in post editing\" class=\"wp-image-92366\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Custom-taxonomy-in-post-editing.jpg 328w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Custom-taxonomy-in-post-editing-300x198.jpg 300w\" sizes=\"(max-width: 328px) 100vw, 328px\" \/><\/figure>\n\n\n\n<p>\u00a1Buen trabajo! Eso casi lo cubre.<\/p>\n\n\n\n<p>Tenga en cuenta que tambi\u00e9n puede simplemente a\u00f1adir este c\u00f3digo a su tema, en lugar de un plugin. Sin embargo, cualquier cambio en un tema normal se sobrescribir\u00e1 cuando se actualice. Por ello, te recomendamos que crees un tema hijo.<\/p>\n\n\n\n<p>A <a href=\"https:\/\/git-staging.wpastra.com\/es\/guides-and-tutorials\/wordpress-create-child-theme\/\" target=\"_blank\" rel=\"noreferrer noopener\">crear un tema hijo<\/a>lea nuestra gu\u00eda sobre el tema. Deber\u00e1 leer especialmente la <em>Funciones.php <\/em>que se encuentra al final del post.<\/p>\n\n\n\n<p>M\u00e1s informaci\u00f3n <a href=\"https:\/\/developer.wordpress.org\/plugins\/taxonomies\/working-with-custom-taxonomies\" target=\"_blank\" rel=\"noreferrer noopener\">taxonom\u00edas en la documentaci\u00f3n oficial de WordPress<\/a> p\u00e1gina.<\/p>\n\n\n\n<p>Tambi\u00e9n puedes crear un Custom Post Type, como hicimos en el primer ejemplo. M\u00e1s informaci\u00f3n <a href=\"https:\/\/developer.wordpress.org\/plugins\/post-types\/registering-custom-post-types\/\" target=\"_blank\" rel=\"noreferrer noopener\">aqu\u00ed en la documentaci\u00f3n de WordPress.<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">C\u00f3mo mostrar taxonom\u00edas en su sitio web<\/h2>\n\n\n\n<p>Ahora que ha creado una taxonom\u00eda, es posible que desee mostrarla en su sitio web. Existen varias opciones:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>En un men\u00fa<\/li>\n\n\n\n<li>En un widget<\/li>\n\n\n\n<li>En cualquier lugar con un shortcode<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">En un men\u00fa<\/h3>\n\n\n\n<p>Para a\u00f1adir su taxonom\u00eda a un men\u00fa, s\u00f3lo tiene que ir a la secci\u00f3n <strong>Apariencia &gt; Men\u00fas <\/strong>en la barra lateral. Ver\u00e1 la taxonom\u00eda junto a otros elementos.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"520\" height=\"357\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/add-custom-taxonomy-in-the-menus.jpg\" alt=\"add custom taxonomy in the menus\" class=\"wp-image-92359\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/add-custom-taxonomy-in-the-menus.jpg 520w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/add-custom-taxonomy-in-the-menus-300x206.jpg 300w\" sizes=\"(max-width: 520px) 100vw, 520px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">En un widget<\/h3>\n\n\n\n<p>\u00bfQuieres poner tu taxonom\u00eda en un widget? La forma m\u00e1s sencilla es utilizar un peque\u00f1o plugin llamado <a href=\"https:\/\/wordpress.org\/plugins\/list-custom-taxonomy-widget\/#:~:text=The%20List%20Custom%20Taxonomy%20Widget,and%20other%20sidebars%20as%20well.\" target=\"_blank\" rel=\"noreferrer noopener\">Widget de taxonom\u00eda personalizada.<\/a> Con \u00e9l, puede a\u00f1adir r\u00e1pidamente cualquier taxonom\u00eda a un widget.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"469\" height=\"339\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/custom-taxonomy-in-widget.jpg\" alt=\"custom taxonomy in widget\" class=\"wp-image-92356\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/custom-taxonomy-in-widget.jpg 469w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/custom-taxonomy-in-widget-300x217.jpg 300w\" sizes=\"(max-width: 469px) 100vw, 469px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Con un Shortcode<\/h3>\n\n\n\n<p>Por \u00faltimo, puede a\u00f1adir sus taxonom\u00edas en cualquier lugar mediante un shortcode. El plugin <a href=\"https:\/\/wordpress.org\/plugins\/taxonomy-list\/#description\" target=\"_blank\" rel=\"noreferrer noopener\"><em>Lista de taxonom\u00edas<\/em><\/a> lo hace muy sencillo.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"523\" height=\"91\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/taxonomy-list-shortcode.jpg\" alt=\"taxonomy list shortcode\" class=\"wp-image-92348\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/taxonomy-list-shortcode.jpg 523w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/taxonomy-list-shortcode-300x52.jpg 300w\" sizes=\"(max-width: 523px) 100vw, 523px\" \/><\/figure>\n\n\n\n<p>Una vez que instale y active el plugin, a\u00f1ada una taxonom\u00eda utilizando el formato shortcode de la imagen superior.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-92240-_j0f4ewkv1pzc\"><\/a>WooCommerce y Taxonom\u00edas<\/h2>\n\n\n\n<p>Por \u00faltimo, hablemos de taxonom\u00edas y de <a href=\"https:\/\/git-staging.wpastra.com\/go\/woocommerce\/\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce<\/a>. Crear una taxonom\u00eda para tus productos de WooCommerce puede ayudar a los clientes a filtrar a\u00fan m\u00e1s los productos para encontrar exactamente lo que necesitan. Por ejemplo, puede a\u00f1adir una <em>colores<\/em> para organizar todos sus productos por colores.<\/p>\n\n\n\n<p>\u00bfEres nuevo en WooCommerce? Echa un vistazo a nuestro <a href=\"https:\/\/git-staging.wpastra.com\/es\/woocommerce-tutorial\/what-is-woocommerce\/\" target=\"_blank\" rel=\"noreferrer noopener\">gu\u00eda para configurar WooCommerce<\/a>.<\/p>\n\n\n\n<p>Por defecto, WooCommerce crea una serie de tipos de post y taxonom\u00edas. En concreto, crea 4 tipos de post:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Producto (<em>producto)<\/em><\/li>\n\n\n\n<li>Pedido en tienda (<em>pedido_tienda)<\/em><\/li>\n\n\n\n<li>Cup\u00f3n de compra <em>(cup\u00f3n_tienda)<\/em><\/li>\n\n\n\n<li>Gancho web de la tienda <em>(shop_webhook)<\/em><\/li>\n<\/ul>\n\n\n\n<p>...y 6 taxonom\u00edas:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>En virtud de la <em>producto <\/em>tipo de entrada personalizado:\n<ul class=\"wp-block-list\">\n<li>Categor\u00edas de productos: (<em>producto_cat)<\/em><\/li>\n\n\n\n<li>Etiquetas del producto: <em>(etiqueta_producto)<\/em><\/li>\n\n\n\n<li>Variaci\u00f3n del producto:<em> (variaci\u00f3n_producto)<\/em><\/li>\n\n\n\n<li>Visibilidad del producto:<em> (visibilidad_del_producto)<\/em><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>En virtud de la <em>pedido en tienda<\/em> tipo de entrada personalizado:\n<ul class=\"wp-block-list\">\n<li>Estado de los pedidos: <em>(estado_pedido_tienda)<\/em><\/li>\n\n\n\n<li>Devoluci\u00f3n de pedidos: <em>(shop_order_refund)<\/em><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Para crear una nueva taxonom\u00eda personalizada para WooCommerce, <a href=\"#how-to-create-a-custom-taxonomy-in-wordpress\">s\u00f3lo tienes que seguir los pasos anteriores<\/a>. Una vez creada la taxonom\u00eda, vaya a la secci\u00f3n <strong>Avanzado <\/strong>y despl\u00e1cese hasta <strong>Tipos de puesto asociados.<\/strong> Ah\u00ed ver\u00e1s listadas las taxonom\u00edas asociadas a WooCommerce.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"559\" height=\"456\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/WooCommerce-associated-post-types.jpg\" alt=\"WooCommerce associated post types\" class=\"wp-image-92345\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/WooCommerce-associated-post-types.jpg 559w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/WooCommerce-associated-post-types-300x245.jpg 300w\" sizes=\"(max-width: 559px) 100vw, 559px\" \/><\/figure>\n\n\n\n<p>Seleccione uno y, a continuaci\u00f3n, vaya a la p\u00e1gina correspondiente al art\u00edculo. Por ejemplo, si lo ha vinculado a <em>cup\u00f3n_tienda<\/em>Ir a <strong>Marketing &gt; Cupones<\/strong> en la barra lateral de WordPress y <a href=\"https:\/\/git-staging.wpastra.com\/es\/woocommerce-tutorial\/woocommerce-coupon-codes\/\" target=\"_blank\" rel=\"noreferrer noopener\">crear un nuevo cup\u00f3n<\/a>.<\/p>\n\n\n\n<p>Ahora ver\u00e1 la nueva taxonom\u00eda en la parte derecha de la p\u00e1gina:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"306\" height=\"351\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/WooCommerce-custom-taxonomy.jpg\" alt=\"WooCommerce custom taxonomy\" class=\"wp-image-92344\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/WooCommerce-custom-taxonomy.jpg 306w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/WooCommerce-custom-taxonomy-262x300.jpg 262w\" sizes=\"(max-width: 306px) 100vw, 306px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-92240-_dg1xt1klpazl\"><\/a>Conclusi\u00f3n<\/h2>\n\n\n\n<p>Ya eres un experto en taxonom\u00eda. En este art\u00edculo ha aprendido <em>qu\u00e9 <\/em>una taxonom\u00eda es, <em>por qu\u00e9 <\/em>debe utilizarlos, y <em>c\u00f3mo <\/em>para configurarlas. Tambi\u00e9n examinamos el uso de taxonom\u00edas con <a href=\"https:\/\/git-staging.wpastra.com\/go\/woocommerce\/\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce<\/a>.<\/p>\n\n\n\n<p>Por \u00faltimo, le mostramos c\u00f3mo mostrarlas en su sitio de WordPress a trav\u00e9s de un men\u00fa, widget o shortcode. Aunque las taxonom\u00edas se utilizan a menudo para el back-end de su sitio, tambi\u00e9n son muy \u00fatiles para mostrar en el front-end tambi\u00e9n.<\/p>\n\n\n\n<p>\u00bfUtiliza taxonom\u00edas en su sitio web? \u00bfPara qu\u00e9? \u00bfMejoran su productividad? H\u00e1ganoslo saber en los comentarios.<\/p>","protected":false},"excerpt":{"rendered":"<p>Es probable que haya o\u00eddo alguna vez la palabra taxonom\u00eda, probablemente en relaci\u00f3n con las entradas de WordPress. \u00bfQu\u00e9 es una taxonom\u00eda y para qu\u00e9 se utiliza en WordPress? En este post, explicaremos qu\u00e9 es una taxonom\u00eda y le mostraremos c\u00f3mo crear una personalizada para su propio sitio. Las taxonom\u00edas son una herramienta realmente sencilla pero \u00fatil [...]<\/p>","protected":false},"author":9,"featured_media":92357,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[860],"tags":[2118],"class_list":{"0":"post-92240","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-guides-and-tutorials","8":"tag-how-to-schema"},"spectra_custom_meta":{"wp_last_modified_info":["September 20, 2023 @ 2:48 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"_edit_lock":["1691655234:85"],"_edit_last":["85"],"astra_display_author":["9"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"site-sidebar-layout":["default"],"site-content-layout":["default"],"theme-transparent-header-meta":["default"],"_yoast_wpseo_content_score":["30"],"_yoast_wpseo_estimated-reading-time-minutes":["12"],"_lmt_disableupdate":["no"],"_wplmi_last_modified":["2023-09-20 14:48:21"],"_lmt_disable":["no"],"_yoast_wpseo_primary_category":["860"],"_yoast_wpseo_focuskw":["Wordpress Custom Taxonomies"],"_yoast_wpseo_linkdex":["61"],"_yoast_wpseo_title":["How to Create Custom Taxonomy in WordPress (Quick Guide)"],"_yoast_wpseo_opengraph-title":["How to Create Custom Taxonomy in WordPress (Quick Guide)"],"_yoast_wpseo_opengraph-image":["https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Create-custom-taxonomy-in-WordPress.jpg"],"_yoast_wpseo_opengraph-image-id":["92357"],"_yoast_wpseo_twitter-title":["How to Create Custom Taxonomy in WordPress (Quick Guide)"],"_yoast_wpseo_twitter-image":["https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Create-custom-taxonomy-in-WordPress.jpg"],"_yoast_wpseo_twitter-image-id":["92357"],"_ppc_meta_key":["a:16:{s:8:\"ppc_key5\";s:37:\"Title is Catchy and Slug is Optimized\";s:20:\"ppc_key5d92f85d42273\";s:60:\"Images &amp; Names Correctly. Title &amp; Alt Tags are Given\";s:8:\"ppc_key4\";s:15:\"Formatting Done\";s:8:\"ppc_key3\";s:28:\"Category and Author Selected\";s:8:\"ppc_key2\";s:23:\"Featured Image Assigned\";s:8:\"ppc_key6\";s:22:\"Social Images Assigned\";s:8:\"ppc_key7\";s:8:\"Done SEO\";s:20:\"ppc_key5ddf5ba19a347\";s:9:\"TOC Added\";s:20:\"ppc_key5ddf5b93dc6a6\";s:21:\"Affiliate Links Added\";s:20:\"ppc_key5ddf5c326920c\";s:59:\"Headings are in title-case and have appropriate heading tag\";s:8:\"ppc_key8\";s:28:\"Spelling and Grammar Checked\";s:20:\"ppc_key610cc9d811cfe\";s:39:\"For updated content enable updated date\";s:20:\"ppc_key610cc9c5c4d6c\";s:37:\"For new content disable updated date.\";s:20:\"ppc_key62b0172ee5a4c\";s:23:\"Featured image assigned\";s:20:\"ppc_key62b01736334b5\";s:37:\"For new content, disable updated date\";s:20:\"ppc_key62b0173b707c0\";s:40:\"For updated content, enable updated date\";}"],"_thumbnail_id":["92357"],"_uagb_toc_heading_content":["a:13:{i:0;a:4:{s:5:\"level\";i:2;s:2:\"id\";s:18:\"what-is-a-taxonomy\";s:7:\"content\";s:19:\"What Is a Taxonomy?\";s:5:\"depth\";i:2;}i:1;N;i:2;N;i:3;N;i:4;a:4:{s:5:\"level\";i:2;s:2:\"id\";s:44:\"how-to-create-a-custom-taxonomy-in-wordpress\";s:7:\"content\";s:44:\"How to Create a Custom Taxonomy in WordPress\";s:5:\"depth\";i:2;}i:5;N;i:6;N;i:7;a:4:{s:5:\"level\";i:2;s:2:\"id\";s:38:\"how-to-display-taxonomies-on-your-site\";s:7:\"content\";s:38:\"How to Display Taxonomies on Your Site\";s:5:\"depth\";i:2;}i:8;N;i:9;N;i:10;N;i:11;a:4:{s:5:\"level\";i:2;s:2:\"id\";s:26:\"woocommerce-and-taxonomies\";s:7:\"content\";s:26:\"WooCommerce and Taxonomies\";s:5:\"depth\";i:2;}i:12;a:4:{s:5:\"level\";i:2;s:2:\"id\";s:10:\"conclusion\";s:7:\"content\";s:10:\"Conclusion\";s:5:\"depth\";i:2;}}"],"rank_math_primary_category":["860"],"rank_math_title":["How To Create and Customize WordPress Custom Taxonomy \u2013 Step by Step"],"rank_math_focus_keyword":["wordpress custom taxonomy"],"rank_math_facebook_title":["How To Create and Customize WordPress Custom Taxonomy \u2013 Step by Step"],"rank_math_twitter_title":["How To Create and Customize WordPress Custom Taxonomy \u2013 Step by Step"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_facebook_image":["https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Create-custom-taxonomy-in-WordPress.jpg"],"rank_math_facebook_image_id":["92357"],"rank_math_twitter_image":["https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Create-custom-taxonomy-in-WordPress.jpg"],"rank_math_twitter_image_id":["92357"],"rank_math_twitter_use_facebook":["off"],"rank_math_analytic_object_id":["239"],"rank_math_internal_links_processed":["1"],"_wp_page_template":["default"],"rank_math_seo_score":["34"],"how-to-120253-name-fieldtype":["global-field"],"how-to-120253-name":["post_title"],"how-to-120253-description-fieldtype":["global-field"],"how-to-120253-description":["post_content"],"how-to-120253-total-time-fieldtype":["custom-field"],"how-to-120253-total-time":["PT01H00M00S"],"how-to-120253-supply-fieldtype":[null],"how-to-120253-supply":["a:2:{i:0;a:1:{s:4:\"name\";s:17:\"WordPress Website\";}i:1;a:1:{s:4:\"name\";s:16:\"WordPress Plugin\";}}"],"how-to-120253-tool-fieldtype":[null],"how-to-120253-tool":["a:2:{i:0;a:1:{s:4:\"name\";s:8:\"Computer\";}i:1;a:1:{s:4:\"name\";s:8:\"Internet\";}}"],"how-to-120253-steps-fieldtype":[null],"how-to-120253-steps":["a:5:{i:0;a:4:{s:4:\"name\";s:38:\"Download and Install the Plugin - Pods\";s:11:\"description\";s:121:\"First, download, install, and activate the Pods \u2013 Custom Content Types and Fields plugin from the WordPress repository.\";s:3:\"url\";s:0:\"\";s:5:\"image\";s:5:\"92352\";}i:1;a:4:{s:4:\"name\";s:29:\"Create a New Custom Post Type\";s:11:\"description\";s:323:\"We\u2019ll first need to create a new custom post type. Go to Pods Admin > Add New on your WordPress sidebar.\r\nYou\u2019ll now see two options: Create New and Extend Existing. Click Create New.\r\nWe will first create a Custom Post type. Under Singular Label, type Recipe and under Plural Label, type Recipes. Then click Next Step.\";s:3:\"url\";s:0:\"\";s:5:\"image\";s:5:\"92364\";}i:2;a:4:{s:4:\"name\";s:28:\"Create a New Custom Taxonomy\";s:11:\"description\";s:171:\"Go back to Pods > Add New.\r\nClick Create New again. This time, select Custom Taxonomy under Content Type. Below, type in Ingredient and Ingredients. Then, click Next Step.\";s:3:\"url\";s:0:\"\";s:5:\"image\";s:5:\"92349\";}i:3;a:4:{s:4:\"name\";s:41:\"Link the Custom Post Type to the Taxonomy\";s:11:\"description\";s:261:\"Go back to the Edit Pods page and click Edit under your Custom Post Type (Recipes in our example.)\r\nNow go to the Advanced Options tab.\r\nScroll down to Built-in Taxonomies and check the box next to the newly created taxonomy. In our example, it\u2019s Ingredients.\";s:3:\"url\";s:0:\"\";s:5:\"image\";s:5:\"92354\";}i:4;a:4:{s:4:\"name\";s:31:\"Create a New Post Under Recipes\";s:11:\"description\";s:108:\"Click Add New under recipes menu.\r\nOn the right-hand side, you\u2019ll see Ingredients listed. And that\u2019s it!\";s:3:\"url\";s:0:\"\";s:5:\"image\";s:5:\"92353\";}}"],"wp_schema_pro_optimized_structured_data":["<!-- Schema optimized by Schema Pro --><script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@type\":\"HowTo\",\"name\":\"How to Create a Custom Taxonomy in WordPress\",\"description\":\"You\u2019ve probably heard the word taxonomy used before, probably in relation to WordPress posts. But what is a taxonomy? And what are they used for in WordPress?\\n\\n\\n\\nIn this post, we\u2019ll explain what a taxonomy is and show you how to create a custom one for your own site. Taxonomies are a really simple but useful way to add extra functionality and customization to your website.\\n\\n\\n\\nLet\u2019s get organized!\\n\\n\\n\\n\\n\\nWhat Is a Taxonomy?\\n\\n\\n\\nA taxonomy is just a scientific word for saying classification. Taxonomies are used in biology to separate animals from plants, or from certain kinds of animals from each other. Here's a simple example:\\n\\n\\n\\nLifeAnimals\\n\\nDogs\\nHumans\\n\\nPlants\\n\\nFlowers\\n\\nSunflowers\\nRoses\\n\\n\\nTrees\\n\\n\\n\\n\\n\\nThe item Dogs, for example, is included under Animals, which is included under Life. So, any item labeled with Dogs is a member of these three hierarchical \u201ccategories\u201d at the same time.\\n\\n\\n\\nTaxonomies in WordPress: Categories and Tags\\n\\n\\n\\nTaxonomies are used extensively in WordPress, specifically for Posts. In WordPress, there are two taxonomy systems built-in by default for use with Posts: Categories and Tags. You've probably used both of them before to organize your content.\\n\\n\\n\\n\\n\\n\\n\\nBut what if you want to have a more complex structure for your posts? And what if you want to use custom post types, then sort them with something more specific than just categories or tags? For example, you may want to have a custom post type named Recipe and then sort it by Ingredient. \\n\\n\\n\\nOr, you may want to divide your posts into separate areas on the backend on your WordPress site in order to make it easier to manage your content.\\n\\n\\n\\nThat's where custom taxonomies come in. With a custom taxonomy, you can create complex structures that divide your content into different sections. These can also be organized hierarchically, like our Life taxonomy above.\\n\\n\\n\\nCustom taxonomies can also make life easier for your clients. You can create custom post types and taxonomies for them, which are then displayed on the WordPress sidebar.\\n\\n\\n\\nFlat vs. Hierarchical\\n\\n\\n\\nWhen creating a taxonomy, you can make them either flat or hierarchical. What's the difference? It's simple: a flat taxonomy has only one level, while a hierarchical one has many levels.\\n\\n\\n\\nIn WordPress, tags are flat, while categories are hierarchical. In other words, you can nest categories inside each other, while tags are just all on the same level.\\n\\n\\n\\nFlat Taxonomy\\n\\n\\n\\nIn a flat taxonomy, everything is on the same level.\\n\\n\\n\\nBananasLemonsPineapples\\n\\n\\n\\nHierarchical Taxonomy\\n\\n\\n\\nIn a hierarchical taxonomy, levels can have parent or child levels.\\n\\n\\n\\nFruits\\n\\nYellow Fruits\\n\\nBananas\\n\\nCavendish Bananas\\nPisang Raja Bananas\\n\\n\\nLemons\\nPineapples\\nYellow Peppers\\n\\n\\n\\n\\n\\n\\n\\nWho Uses Taxonomies?\\n\\n\\n\\nVariety.com is a great example. Since they cover a variety of different topics, it is natural for them to have them categorized into different sections like FILM, TV, MUSIC and EVENTS.Taxonomies are used by a wide variety of websites, especially those with a range of different content topics.\\n\\n\\n\\n\\n\\n\\n\\nBy organizing their site into separate taxonomies, they can make it easier to manage the hundreds of different posts, videos, images, and other content they post every week.\\n\\n\\n\\nHow to Create a Custom Taxonomy in WordPress\\n\\n\\n\\nNow that you know what a taxonomy is and why you should use one, let\u2019s walk through using it! There are two ways to add a taxonomy:\\n\\n\\n\\nWith a pluginManually with code\\n\\n\\n\\nMethod 1: With a Plugin\\n\\n\\n\\n\\n\\n\\n\\nThe easiest way to add a custom taxonomy to your site is by using a plugin. There are many available, but the two most popular are Custom Post Type UI and Pods. Since it is less complex and easier to use, we\u2019ll use Pods for this tutorial.\\n\\n\\n\\nLet\u2019s walk through using it!\\n\\n\\n\\nFor this example, we\u2019ll imagine you\u2019re creating a website that features recipes. First, we\u2019ll make a custom post type called Recipes. Then, we\u2019ll create a custom taxonomy to organize different aspects of each recipe, like Ingredients, Allergies, Vegetarian\/Non-Vegetarian, and similar things.\\n\\n\\n\\nStep 1: Download and Install the Plugin\\n\\n\\n\\nFirst, download, install, and activate the plugin from the WordPress repository.\\n\\n\\n\\nStep 2: Create a New Custom Post Type\\n\\n\\n\\nFor our example, we\u2019ll first need to create a new custom post type. Go to Pods Admin &gt; Add New on your WordPress sidebar.\\n\\n\\n\\n\\n\\n\\n\\nYou\u2019ll now see two options: Create New and Extend Existing. Click Create New.\\n\\n\\n\\nNow you choose what you want to create. We will first create a Custom Post type. Under Singular Label, type Recipe and under Plural Label, type Recipes. Then click Next Step.\\n\\n\\n\\n\\n\\n\\n\\nYou\u2019ll see a confirmation message that your pod was created successfully. Now we need to create a new Taxonomy. Go back to Pods &gt; Add New.\\n\\n\\n\\nClick Create New again. This time, select Custom Taxonomy under Content Type. Below, type in Ingredient and Ingredients. Then, click Next Step.\\n\\n\\n\\n\\n\\n\\n\\nAs a final step, we need to link the Custom Post Type to the taxonomy. Go back to the Edit Pods page and click Edit under your Custom Post Type (Recipes in our example.)\\n\\n\\n\\n\\n\\n\\n\\nNow go to the Advanced Options tab.\\n\\n\\n\\n\\n\\n\\n\\nScroll down to Built-in Taxonomies and check the box next to the newly created taxonomy. In our example, it\u2019s Ingredients.\\n\\n\\n\\nNow let\u2019s test it! If you look on your sidebar, you\u2019ll notice a new item: your custom post type with the custom taxonomy (Ingredients) below it. Pretty cool!\\n\\n\\n\\n\\n\\n\\n\\nClick on Ingredients to see a list of them. Right now, we don\u2019t have any. Let\u2019s add one. On the left-hand side, fill out the form and create a new ingredient. For our example, let\u2019s use Chocolate.\\n\\n\\n\\nOn the right-hand side, Chocolate will now be displayed. Pretty easy!\\n\\n\\n\\nNow let\u2019s create a new post under Recipes. Click Add New.\\n\\n\\n\\n\\n\\n\\n\\nOn the right-hand side, you\u2019ll see Ingredients listed, with Chocolate as an option. Notice that this is usually where you add Categories to your posts.\\n\\n\\n\\nAnd that\u2019s it! To add more items to your taxonomy, you can either do it manually via the Ingredients panel or from directly within the post.\\n\\n\\n\\nMethod 2: Manually\\n\\n\\n\\nIf you\u2019re a developer or you don\u2019t want to use a third-party plugin, you can also add custom taxonomies manually. In the example below, we\u2019ll show you how to add a new taxonomy to your regular WordPress posts.\\n\\n\\n\\nFirst, create a blank text file on your computer using a text editor program. Paste the following code into it, replacing the variables with your desired ones.\\n\\n\\n\\n&lt;?php\\n\/*\\n* Plugin Name: Ingredients Taxonomy\\n* Description: A short example showing how to add a taxonomy called Ingredients.\\n* Version: 1.0\\n* Author: wpastra.com\\n* Author URI: https:\/\/git-staging.wpastra.com\/\\n*\/\\n \\nfunction wporg_register_taxonomy_ingredients() {\\n     $labels = array(\\n         'name'              =&gt; _x( 'Ingredients', 'taxonomy general name' ),\\n         'singular_name'     =&gt; _x( 'Ingredients', 'taxonomy singular name' ),\\n         'search_items'      =&gt; __( 'Search Ingredients' ),\\n         'all_items'         =&gt; __( 'All Ingredients' ),\\n         'parent_item'       =&gt; __( 'Parent Ingredients' ),\\n         'parent_item_colon' =&gt; __( 'Parent Ingredient:' ),\\n         'edit_item'         =&gt; __( 'Edit Ingredient' ),\\n         'update_item'       =&gt; __( 'Update Ingredient' ),\\n         'add_new_item'      =&gt; __( 'Add New Ingredient' ),\\n         'new_item_name'     =&gt; __( 'New Ingredient Name' ),\\n         'menu_name'         =&gt; __( 'Ingredients' ),\\n     );\\n     $args   = array(\\n         'hierarchical'      =&gt; true, \/\/ make it hierarchical (like categories)\\n         'labels'            =&gt; $labels,\\n         'show_ui'           =&gt; true,\\n         'show_admin_column' =&gt; true,\\n         'query_var'         =&gt; true,\\n         'rewrite'           =&gt; &#91; 'slug' =&gt; 'ingredient' ],\\n     );\\n     register_taxonomy( 'ingredients', &#91; 'post' ], $args );\\n}\\nadd_action( 'init', 'wporg_register_taxonomy_ingredients' );\\n?&gt;\\n\\n\\n\\nSave the file as ingredients.php. Then, create a folder, give it a name, and put the text file in that folder. Compress the folder into a zip file.\\n\\n\\n\\n\\n\\n\\n\\nNow, go to your WordPress site. Navigate to Plugins &gt; Add New on your sidebar.\\n\\n\\n\\n\\n\\n\\n\\nClick Upload Plugin and select your zip file. Then, activate it.\\n\\n\\n\\nYou\u2019ll now see that Posts has a new submenu item: Ingredients. Click on it.\\n\\n\\n\\nHere you can add new items to the Ingredients taxonomy. For example, let\u2019s add Chocolate.\\n\\n\\n\\n\\n\\n\\n\\nIf we now go and edit a post, you\u2019ll see the Ingredients taxonomy on the sidebar, underneath categories.\\n\\n\\n\\n\\n\\n\\n\\nNice job! That just about covers it.\\n\\n\\n\\nNote that you can also just add this code to your theme, instead of a plugin. However, any changes to a regular theme will be overwritten when it is updated. As such, we recommend creating a child theme instead.\\n\\n\\n\\nTo create a child theme, read our guide to the topic. You\u2019ll especially need to read the Functions.php section, which is at the end of the post.\\n\\n\\n\\nRead more about taxonomies on official WordPress documentation page.\\n\\n\\n\\nYou can also create a Custom Post Type, like we did in the first example. Learn more about that here in the WordPress documentation.\\n\\n\\n\\nHow to Display Taxonomies on Your Site\\n\\n\\n\\nNow that you\u2019ve created a taxonomy, you might want to display it on your website. There are a few different options:\\n\\n\\n\\nIn a menuIn a widgetAnywhere with a shortcode\\n\\n\\n\\nIn a Menu\\n\\n\\n\\nTo add your taxonomy to a menu, simply go to the Appearance &gt; Menus tab on your sidebar. You\u2019ll see the taxonomy listed next to other items.\\n\\n\\n\\n\\n\\n\\n\\nIn a Widget\\n\\n\\n\\nWant to put your taxonomy in a widget? The easiest way is by using a little plugin called List Custom Taxonomy Widget. With it, you can quickly add any taxonomy to a widget.\\n\\n\\n\\n\\n\\n\\n\\nWith a Shortcode\\n\\n\\n\\nFinally, you can add your taxonomies anywhere by using a shortcode. The plugin Taxonomy List makes it very simple.\\n\\n\\n\\n\\n\\n\\n\\nOnce you install and activate the plugin, add a taxonomy by using the shortcode format in the image above.\\n\\n\\n\\nWooCommerce and Taxonomies\\n\\n\\n\\nFinally, let\u2019s talk about taxonomies and WooCommerce. Creating a taxonomy for your WooCommerce products can help customers further filter products to find exactly what they need. For example, you can add a colors taxonomy to organize all of your products by color.\\n\\n\\n\\nNew to WooCommerce? Check out our guide to setup up WooCommerce.\\n\\n\\n\\nBy default, WooCommerce creates a number of post types and taxonomies. Specifically, it creates 4 post types:\\n\\n\\n\\nProduct (product)Shop order (shop_order)Shop coupon (shop_coupon)Shop webhook (shop_webhook)\\n\\n\\n\\n...and 6 taxonomies:\\n\\n\\n\\nUnder the product custom post type:\\n\\nProduct categories: (product_cat)\\nProduct tags: (product_tag)\\nProduct variation: (product_variation)\\nProduct visibility: (product_visibility)\\n\\nUnder the shop order custom post type:\\n\\nOrder statuses: (shop_order_status)\\nOrder refunds: (shop_order_refund)\\n\\n\\n\\n\\n\\nTo create a new custom taxonomy for WooCommerce, just follow the steps above. Once you create the taxonomy, go to the Advanced tab and scroll down to Associated Post Types. There, you\u2019ll see the taxonomies associated with WooCommerce listed.\\n\\n\\n\\n\\n\\n\\n\\nSelect one, then go to the respective page for the item. For example, if you linked it to shop_coupon, go to Marketing &gt; Coupons on your WordPress sidebar and create a new coupon.\\n\\n\\n\\nYou\u2019ll now see the new taxonomy listed on the right side of the page:\\n\\n\\n\\n\\n\\n\\n\\nConclusion\\n\\n\\n\\nYou\u2019re now a taxonomy expert! In this post, you learned what a taxonomy is, why you should use them, and how to set them up. We also looked at using taxonomies with WooCommerce.\\n\\n\\n\\nFinally, we showed you how to display them on your WordPress site via a menu, widget, or shortcode. While taxonomies are often used for the back end of your site, they\u2019re also quite useful to display on the front end too.\\n\\n\\n\\nDo you use taxonomies on your site? What for? Do they improve your productivity? Let us know in the comments!\",\"totalTime\":\"PT01H00M00S\",\"supply\":[{\"@type\":\"HowToSupply\",\"name\":\"WordPress Website\"},{\"@type\":\"HowToSupply\",\"name\":\"WordPress Plugin\"}],\"tool\":[{\"@type\":\"HowToTool\",\"name\":\"Computer\"},{\"@type\":\"HowToTool\",\"name\":\"Internet\"}],\"step\":[{\"@type\":\"HowToStep\",\"name\":\"Download and Install the Plugin - Pods\",\"itemListElement\":{\"@type\":\"HowToDirection\",\"text\":\"First, download, install, and activate the Pods \u2013 Custom Content Types and Fields plugin from the WordPress repository.\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Pods-Custom-Content-Types-and-Fields-WordPress-plugin.jpg\",\"width\":900,\"height\":410}},{\"@type\":\"HowToStep\",\"name\":\"Create a New Custom Post Type\",\"itemListElement\":{\"@type\":\"HowToDirection\",\"text\":\"We\u2019ll first need to create a new custom post type. Go to Pods Admin > Add New on your WordPress sidebar.\\r\\nYou\u2019ll now see two options: Create New and Extend Existing. Click Create New.\\r\\nWe will first create a Custom Post type. Under Singular Label, type Recipe and under Plural Label, type Recipes. Then click Next Step.\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/pods-custom-post-type.jpg\",\"width\":900,\"height\":578}},{\"@type\":\"HowToStep\",\"name\":\"Create a New Custom Taxonomy\",\"itemListElement\":{\"@type\":\"HowToDirection\",\"text\":\"Go back to Pods > Add New.\\r\\nClick Create New again. This time, select Custom Taxonomy under Content Type. Below, type in Ingredient and Ingredients. Then, click Next Step.\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Pods-create-custom-taxonomy.jpg\",\"width\":1000,\"height\":666}},{\"@type\":\"HowToStep\",\"name\":\"Link the Custom Post Type to the Taxonomy\",\"itemListElement\":{\"@type\":\"HowToDirection\",\"text\":\"Go back to the Edit Pods page and click Edit under your Custom Post Type (Recipes in our example.)\\r\\nNow go to the Advanced Options tab.\\r\\nScroll down to Built-in Taxonomies and check the box next to the newly created taxonomy. In our example, it\u2019s Ingredients.\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/edit-created-custom-post-type.jpg\",\"width\":1000,\"height\":654}},{\"@type\":\"HowToStep\",\"name\":\"Create a New Post Under Recipes\",\"itemListElement\":{\"@type\":\"HowToDirection\",\"text\":\"Click Add New under recipes menu.\\r\\nOn the right-hand side, you\u2019ll see Ingredients listed. And that\u2019s it!\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Custom-taxonomy-and-custom-post-type.jpg\",\"width\":1200,\"height\":581}}]}<\/script><!-- \/ Schema optimized by Schema Pro -->"],"uael-social-share-count":["a:1:{s:8:\"1b71105e\";i:373;}"],"_wpml_media_featured":["1"],"_wpml_media_duplicate":["0"],"_wpml_word_count":["{\"total\":1784,\"to_translate\":{\"es\":1784}}"],"rank_math_description":["Learn how to create custom taxonomies in WordPress with our comprehensive guide. Ideal for websites that require unique categories and tags."],"rank_math_facebook_description":["Learn how to create custom taxonomies in WordPress with our comprehensive guide. Ideal for websites that require unique categories and tags."],"rank_math_twitter_description":["Learn how to create custom taxonomies in WordPress with our comprehensive guide. Ideal for websites that require unique categories and tags."],"_trp_automatically_translated_slug_es_ES":["taxonomias-personalizadas-de-wordpress"],"_uagb_toc_options":["a:2:{s:17:\"_uagb_toc_version\";s:10:\"1775483236\";s:18:\"_uagb_toc_headings\";a:13:{i:0;a:4:{s:5:\"level\";i:2;s:2:\"id\";s:18:\"what-is-a-taxonomy\";s:7:\"content\";s:19:\"What Is a Taxonomy?\";s:5:\"depth\";i:2;}i:1;a:4:{s:5:\"level\";i:3;s:2:\"id\";s:43:\"taxonomies-in-wordpress-categories-and-tags\";s:7:\"content\";s:44:\"Taxonomies in WordPress: Categories and Tags\";s:5:\"depth\";i:3;}i:2;a:4:{s:5:\"level\";i:3;s:2:\"id\";s:20:\"flat-vs-hierarchical\";s:7:\"content\";s:21:\"Flat vs. Hierarchical\";s:5:\"depth\";i:3;}i:3;a:4:{s:5:\"level\";i:3;s:2:\"id\";s:19:\"who-uses-taxonomies\";s:7:\"content\";s:20:\"Who Uses Taxonomies?\";s:5:\"depth\";i:3;}i:4;a:4:{s:5:\"level\";i:2;s:2:\"id\";s:44:\"how-to-create-a-custom-taxonomy-in-wordpress\";s:7:\"content\";s:44:\"How to Create a Custom Taxonomy in WordPress\";s:5:\"depth\";i:2;}i:5;a:4:{s:5:\"level\";i:3;s:2:\"id\";s:22:\"method-1-with-a-plugin\";s:7:\"content\";s:23:\"Method 1: With a Plugin\";s:5:\"depth\";i:3;}i:6;a:4:{s:5:\"level\";i:3;s:2:\"id\";s:17:\"method-2-manually\";s:7:\"content\";s:18:\"Method 2: Manually\";s:5:\"depth\";i:3;}i:7;a:4:{s:5:\"level\";i:2;s:2:\"id\";s:38:\"how-to-display-taxonomies-on-your-site\";s:7:\"content\";s:38:\"How to Display Taxonomies on Your Site\";s:5:\"depth\";i:2;}i:8;a:4:{s:5:\"level\";i:3;s:2:\"id\";s:9:\"in-a-menu\";s:7:\"content\";s:9:\"In a Menu\";s:5:\"depth\";i:3;}i:9;a:4:{s:5:\"level\";i:3;s:2:\"id\";s:11:\"in-a-widget\";s:7:\"content\";s:11:\"In a Widget\";s:5:\"depth\";i:3;}i:10;a:4:{s:5:\"level\";i:3;s:2:\"id\";s:16:\"with-a-shortcode\";s:7:\"content\";s:16:\"With a Shortcode\";s:5:\"depth\";i:3;}i:11;a:4:{s:5:\"level\";i:2;s:2:\"id\";s:26:\"woocommerce-and-taxonomies\";s:7:\"content\";s:26:\"WooCommerce and Taxonomies\";s:5:\"depth\";i:2;}i:12;a:4:{s:5:\"level\";i:2;s:2:\"id\";s:10:\"conclusion\";s:7:\"content\";s:10:\"Conclusion\";s:5:\"depth\";i:2;}}}"]},"uagb_featured_image_src":{"full":["https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Create-custom-taxonomy-in-WordPress.jpg",1200,630,false],"thumbnail":["https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Create-custom-taxonomy-in-WordPress-150x150.jpg",150,150,true],"medium":["https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Create-custom-taxonomy-in-WordPress-300x158.jpg",300,158,true],"medium_large":["https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Create-custom-taxonomy-in-WordPress-768x403.jpg",768,403,true],"large":["https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Create-custom-taxonomy-in-WordPress-1024x538.jpg",1024,538,true],"1536x1536":["https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Create-custom-taxonomy-in-WordPress.jpg",1200,630,false],"2048x2048":["https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Create-custom-taxonomy-in-WordPress.jpg",1200,630,false],"trp-custom-language-flag":["https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2021\/06\/Create-custom-taxonomy-in-WordPress.jpg",18,9,false]},"uagb_author_info":{"display_name":"Pratik Chaskar","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/pratikc\/"},"uagb_comment_info":10,"uagb_excerpt":"You\u2019ve probably heard the word taxonomy used before, probably in relation to WordPress posts. What is a taxonomy and what is it used for in WordPress? In this post, we\u2019ll explain what a taxonomy is and show you how to create a custom one for your own site. Taxonomies are a really simple but useful&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/posts\/92240"}],"collection":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=92240"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/posts\/92240\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media\/92357"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=92240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/categories?post=92240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/tags?post=92240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}