{"id":169989,"date":"2023-12-19T14:34:26","date_gmt":"2023-12-19T09:04:26","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=169989"},"modified":"2023-12-19T14:39:34","modified_gmt":"2023-12-19T09:09:34","slug":"change-post-labels-to-projects","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/change-post-labels-to-projects\/","title":{"rendered":"C\u00f3mo cambiar las etiquetas de las entradas de WordPress a proyectos"},"content":{"rendered":"<p>En WordPress, puede cambiar f\u00e1cilmente las etiquetas utilizadas para el tipo de entrada \"Post\" por algo m\u00e1s adecuado para su sitio web, como \"Proyectos\". Para ello, a\u00f1ade un fragmento de c\u00f3digo al archivo functions.php de tu tema hijo.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1914\" height=\"705\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-1.png\" alt=\"\" class=\"wp-image-169990\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-1.png 1914w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-1-300x111.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-1-1024x377.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-1-768x283.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-1-1536x566.png 1536w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-1-18x7.png 18w\" sizes=\"(max-width: 1914px) 100vw, 1914px\" \/><\/figure>\n\n\n\n<p>En este documento, le guiaremos a trav\u00e9s del proceso de c\u00f3mo cambiar las etiquetas Post de WordPress a Proyectos con un simple fragmento de c\u00f3digo.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-169989-_8nuaeeo5vin9\"><\/a><strong>C\u00f3mo cambiar las etiquetas de las entradas de WordPress a proyectos<\/strong><\/h3>\n\n\n\n<p>Aqu\u00ed tienes una gu\u00eda r\u00e1pida y sencilla para empezar.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Inicie sesi\u00f3n en el panel de administraci\u00f3n de WordPress con sus credenciales.<\/li>\n\n\n\n<li>En el panel de WordPress, vaya a \"Apariencia\" y seleccione \"Editor de archivos de temas\".<\/li>\n\n\n\n<li>En el Editor de temas, deber\u00eda ver una lista de archivos de tema a la derecha. Localiza y selecciona el archivo `functions.php` de la lista.<\/li>\n\n\n\n<li>Dentro del archivo `functions.php`, puede a\u00f1adir el siguiente fragmento de c\u00f3digo:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>function astra_change_post_object() {\r\n    $get_post_type = get_post_type_object('post');\r\n    $labels = $get_post_type->labels;\r\n    $labels->name = 'Projects';\r\n    $labels->singular_name = 'Projects';\r\n    $labels->add_new = 'Add Projects';\r\n    $labels->add_new_item = 'Add Projects';\r\n    $labels->edit_item = 'Edit Projects';\r\n    $labels->new_item = 'Projects';\r\n    $labels->view_item = 'View Projects';\r\n    $labels->search_items = 'Search Projects';\r\n    $labels->not_found = 'No Projects found';\r\n    $labels->not_found_in_trash = 'No Projects found in Trash';\r\n    $labels->all_items = 'All Projects';\r\n    $labels->menu_name = 'Projects';\r\n    $labels->name_admin_bar = 'Projects';\r\n}\r\n\r\nadd_action( 'init', 'astra_change_post_object' );<\/code><\/pre>\n\n\n\n<p>Este fragmento de c\u00f3digo utiliza la funci\u00f3n astra_change_post_object para modificar las etiquetas del tipo de entrada \"post\" a \"Projects\". Puede modificar las etiquetas seg\u00fan sus preferencias actualizando los valores correspondientes.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Una vez realizados los cambios necesarios en el archivo functions.php, gu\u00e1rdelo. A continuaci\u00f3n, cargue el archivo functions.php modificado en el directorio de su tema hijo, sustituyendo el archivo existente si se le solicita.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1920\" height=\"878\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-2.png\" alt=\"\" class=\"wp-image-169991\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-2.png 1920w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-2-300x137.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-2-1024x468.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-2-768x351.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-2-1536x702.png 1536w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-2-18x8.png 18w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/figure>\n\n\n\n<p>Para verificar los cambios, visite el \u00e1rea de administraci\u00f3n de WordPress y vaya a la secci\u00f3n \"Entradas\". Deber\u00edas ver que las etiquetas de las entradas se han actualizado a \"Proyectos\" o a cualquier otra etiqueta que hayas especificado en el c\u00f3digo. Los cambios se reflejar\u00e1n en el listado de entradas, en el editor de entradas y en cualquier otra \u00e1rea relevante.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1917\" height=\"705\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-3.png\" alt=\"\" class=\"wp-image-169992\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-3.png 1917w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-3-300x110.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-3-1024x377.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-3-768x282.png 768w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-3-1536x565.png 1536w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2023\/12\/word-image-169989-3-18x7.png 18w\" sizes=\"(max-width: 1917px) 100vw, 1917px\" \/><\/figure>\n\n\n\n<p><strong>Nota:<\/strong> Recuerda hacer cualquier cambio en los archivos de tu tema con precauci\u00f3n, y guarda siempre una copia de seguridad de tu sitio por si algo sale mal. Si tienes alguna pregunta o necesitas m\u00e1s ayuda, deja un comentario a continuaci\u00f3n.<\/p>","protected":false},"excerpt":{"rendered":"<p>En WordPress, puede cambiar f\u00e1cilmente las etiquetas utilizadas para el tipo de entrada \"Post\" por algo m\u00e1s adecuado para su sitio web, como \"Proyectos\". Esto se puede lograr a\u00f1adiendo un fragmento de c\u00f3digo al archivo functions.php de tu tema hijo. En este documento, te guiaremos a trav\u00e9s del proceso de c\u00f3mo cambiar WordPress Post [...]<\/p>","protected":false},"author":89,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","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":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","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":""},"docs_category":[103],"docs_tag":[],"class_list":{"0":"post-169989","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-custom-code-snippets"},"spectra_custom_meta":{"_edit_lock":["1702976976:89"],"rank_math_internal_links_processed":["1"],"rank_math_seo_score":["12"],"_uag_custom_page_level_css":[""],"ast-site-content-layout":["default"],"theme-transparent-header-meta":[""],"adv-header-id-meta":[""],"stick-header-meta":[""],"astra-migrate-meta-layouts":["set"],"_edit_last":["89"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"rank_math_primary_docs_category":["103"],"_trp_automatically_translated_slug_es_ES":["como-cambiar-las-etiquetas-de-los-post-de-wordpress-a-proyectos"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"c574cfae255459765cf5fb50ec7ab948\";s:6:\"images\";a:1:{i:0;i:169990;}}"],"_wp_old_slug":["how-to-change-wordpress-post-labels-to-projects"],"views":["14941"],"pfd_related_docs":[""],"helpful":["0"],"unhelpful":["0"],"redirects":["0"],"_uag_page_assets":["a:9:{s:3:\"css\";s:2495:\".wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-top svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-top .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-bottom svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-bottom .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__video-wrap video{opacity: 1;}.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1200px);max-width: var(--inner-content-custom-width);width: 100%;flex-direction: column;align-items: center;justify-content: center;flex-wrap: nowrap;row-gap: 0px;column-gap: 0px;}.wp-block-uagb-container.uagb-block-debf2792{box-shadow: 0px 0px   #00000070 ;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;overflow: visible;border-color: inherit;row-gap: 0px;column-gap: 0px;}@media only screen and (max-width: 976px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1024px);max-width: var(--inner-content-custom-width);width: 100%;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;}}@media only screen and (max-width: 767px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 767px);max-width: var(--inner-content-custom-width);width: 100%;flex-wrap: wrap;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;}}\";s:2:\"js\";s:0:\"\";s:18:\"current_block_list\";a:8:{i:0;s:14:\"core\/paragraph\";i:1;s:10:\"core\/image\";i:2;s:12:\"core\/heading\";i:3;s:9:\"core\/list\";i:4;s:14:\"core\/list-item\";i:5;s:9:\"core\/code\";i:6;s:14:\"uagb\/container\";i:7;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1776526991\";s:6:\"gfonts\";a:0:{}s:10:\"gfonts_url\";s:0:\"\";s:12:\"gfonts_files\";a:0:{}s:14:\"uag_faq_layout\";b:0;}"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false},"uagb_author_info":{"display_name":"mounikak","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/mounikak\/"},"uagb_comment_info":0,"uagb_excerpt":"In WordPress, you can easily change the labels used for the &#8220;Post&#8221; post type to something more suitable for your website, such as &#8220;Projects&#8221;. This can be accomplished by adding a snippet of code to your child theme&#8217;s functions.php file. In this document, we\u2019ll guide you through the process of how to change WordPress Post&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/169989"}],"collection":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/users\/89"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=169989"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/169989\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=169989"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=169989"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=169989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}