{"id":25624,"date":"2018-04-01T00:00:00","date_gmt":"2018-03-31T18:30:00","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=25624"},"modified":"2023-06-29T13:48:56","modified_gmt":"2023-06-29T08:18:56","slug":"how-to-refresh-wordpress-permalinks","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/how-to-refresh-wordpress-permalinks\/","title":{"rendered":"\u00bfC\u00f3mo Actualizar \/ Purgar los Permalinks de WordPress?"},"content":{"rendered":"<p>Cada vez que se a\u00f1ade un nuevo Custom Post a trav\u00e9s de un plugin o c\u00f3digo; normalmente los permalinks de WordPress necesitan ser vaciados.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Paso 1:<\/strong> En el \u00e1rea de administraci\u00f3n de WordPress, vaya a \"<strong>Configuraci\u00f3n &gt; Enlaces permanentes<\/strong>&#8220;<\/li>\n\n\n\n<li><strong>Segundo paso:<\/strong> Pulse \"<strong>Guardar cambios<\/strong>&#8220;<\/li>\n\n\n\n<li><strong>Paso 3:<\/strong> Los enlaces permanentes y las reglas de reescritura se eliminan.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2019\/08\/Screen-Recording-2018-04-01-at-03.12-PM.gif\" alt=\"Permalink Settings Recording\"\/><\/figure>\n\n\n\n<p>Al guardar la configuraci\u00f3n de los enlaces permanentes, WordPress regenera las reglas de reescritura necesarias y vac\u00eda la cach\u00e9 de enlaces permanentes existente. Esto asegura que cualquier cambio o actualizaci\u00f3n que hayas hecho en tu estructura de permalinks se aplique correctamente.<\/p>\n\n\n\n<p>Es importante tener en cuenta que actualizar o borrar los enlaces permanentes puede afectar temporalmente a la accesibilidad de las p\u00e1ginas de su sitio. Sin embargo, este problema deber\u00eda resolverse autom\u00e1ticamente una vez regenerados los enlaces permanentes.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u00bfC\u00f3mo hacerlo con el comando CLI de WP?<\/h4>\n\n\n\n<p>Para actualizar o borrar los enlaces permanentes de WordPress mediante la herramienta de l\u00ednea de comandos WP-CLI, siga estos pasos:<\/p>\n\n\n\n<p>Paso 1: Abra una interfaz de l\u00ednea de comandos (CLI) o un terminal.<\/p>\n\n\n\n<p>Paso 2: Navegue hasta el directorio ra\u00edz de su instalaci\u00f3n de WordPress utilizando el comando <code>'cd<\/code>. Por ejemplo:<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>cd \/path\/to\/your\/wordpress\/installation<\/code><\/pre>\n\n\n\n<p>Recuerde sustituir \"<code>\/ruta\/su\/wordpress\/instalaci\u00f3n<\/code>\" con la ruta real a su directorio de instalaci\u00f3n de WordPress.<\/p>\n\n\n\n<p>Paso 3: Ejecute el siguiente comando WP-CLI para vaciar los permalinks:<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>wp rewrite flush<\/code><\/pre>\n\n\n\n<p>Paso 4: Pulse Intro para ejecutar el comando.<\/p>\n\n\n\n<p>En <code>wp rewrite flush<\/code> regenera las reglas de reescritura de su sitio WordPress, lo que incluye la actualizaci\u00f3n de los enlaces permanentes.<\/p>\n\n\n\n<p>Despu\u00e9s de ejecutar el comando, deber\u00eda ver un mensaje de \u00e9xito indicando que las reglas de reescritura se han vaciado.<\/p>\n\n\n\n<p>Tenga en cuenta que el uso del <code>wp rewrite flush<\/code> puede afectar temporalmente a la accesibilidad de las p\u00e1ginas de su sitio, de forma similar a cuando se guardan los cambios en los enlaces permanentes en el \u00e1rea de administraci\u00f3n de WordPress. Sin embargo, el problema deber\u00eda resolverse autom\u00e1ticamente una vez regenerados los enlaces permanentes.<\/p>","protected":false},"excerpt":{"rendered":"<p>Whenever a new Custom Post is added through a plugin or code; usually WordPress permalinks need to be flushed. By saving the permalink settings, WordPress regenerates the necessary rewrite rules and flushes the existing permalink cache. This ensures that any changes or updates you have made to your permalinks structure are applied correctly. It\u2019s important [\u2026]<\/p>","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","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":""},"docs_category":[108],"docs_tag":[],"class_list":{"0":"post-25624","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-general"},"spectra_custom_meta":{"_yoast_wpseo_primary_docs_category":["108"],"_wp_old_slug":[""],"_wp_page_template":["default"],"wpil_sync_report3":["1"],"wpil_links_inbound_internal_count":["0"],"wpil_links_inbound_internal_count_data":["a:0:{}"],"wpil_links_outbound_internal_count":["0"],"wpil_links_outbound_internal_count_data":["a:0:{}"],"wpil_links_outbound_external_count":["0"],"wpil_links_outbound_external_count_data":["a:0:{}"],"wpil_sync_report2_time":["2019-08-28T08:19:51+00:00"],"astra_style_timestamp_css":["1573724237"],"_edit_lock":["1688026822:86"],"_edit_last":["86"],"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"],"_ht_kb_post_views_count":["15"],"_ht_kb_usefulness":["-1"],"_ht_article_order_108":["25624"],"wp_last_modified_info":["June 29, 2023 @ 1:48 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"views":["14029"],"helpful":["37"],"unhelpful":["67"],"redirects":["8"],"rank_math_primary_docs_category":["108"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["1139"],"rank_math_seo_score":["10"],"rank_math_internal_links_processed":["1"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"858de768abbf4d0942cb9c75efcad32e\";s:6:\"images\";a:1:{i:0;i:40810;}}"],"_wplmi_last_modified":["2023-06-29 13:48:56"],"pfd_related_docs":[""],"_wpml_media_duplicate":["1"],"_trp_automatically_translated_slug_es_ES":["como-actualizar-los-permalinks-de-wordpress"],"_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:9:\"core\/list\";i:2;s:14:\"core\/list-item\";i:3;s:10:\"core\/image\";i:4;s:12:\"core\/heading\";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:\"1778843969\";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":"Sujay Pawar","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/sujay\/"},"uagb_comment_info":0,"uagb_excerpt":"Whenever a new Custom Post is added through a plugin or code; usually WordPress permalinks need to be flushed. By saving the permalink settings, WordPress regenerates the necessary rewrite rules and flushes the existing permalink cache. This ensures that any changes or updates you have made to your permalinks structure are applied correctly. It&#8217;s important&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/25624"}],"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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=25624"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/25624\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=25624"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=25624"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=25624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}