{"id":30100,"date":"2019-01-17T00:00:00","date_gmt":"2019-01-16T18:30:00","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=30100"},"modified":"2022-07-21T19:38:48","modified_gmt":"2022-07-21T14:08:48","slug":"products-from-same-directed-category-with-navigation","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/products-from-same-directed-category-with-navigation\/","title":{"rendered":"Mostrar productos de la misma categor\u00eda con navegaci\u00f3n"},"content":{"rendered":"<p>Astra Pro Complementos <a rel=\"noreferrer noopener\" aria-label=\"El addon WooCommerce de Astra Pro permite mostrar la navegaci\u00f3n en la p\u00e1gina de un solo producto.  (se abre en una nueva pesta\u00f1a)\" href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/woocommerce-module-overview\/\" target=\"_blank\">Complemento WooCommerce<\/a> permite visualizar la navegaci\u00f3n en la p\u00e1gina de un solo producto. Remitir a un documento <a rel=\"noreferrer noopener\" aria-label=\"El addon WooCommerce de Astra Pro permite mostrar la navegaci\u00f3n en la p\u00e1gina de un solo producto. Consulte un documento aqu\u00ed para ver la opci\u00f3n en detalle.  (se abre en una nueva pesta\u00f1a)\" href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/single-product-woocommerce\/#product-navigation\" target=\"_blank\">aqu\u00ed <\/a>para ver la opci\u00f3n en detalle. Habilitar esta opci\u00f3n agregar\u00e1 enlace anterior y siguiente bot\u00f3n en la p\u00e1gina de producto \u00fanico WooCommerce.&nbsp;<\/p>\n\n\n\n<p>Por defecto, al hacer clic en el bot\u00f3n siguiente, se mostrar\u00e1 un producto en funci\u00f3n de la fecha de publicaci\u00f3n<g class=\"gr_ gr_12 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation multiReplace\" id=\"12\" data-gr-id=\"12\">.<\/g> Si desea mostrar s\u00f3lo los productos siguientes y anteriores de la misma categor\u00eda, utilice el filtro que se indica a continuaci\u00f3n. Este filtro mostrar\u00e1 <g class=\"gr_ gr_7 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Grammar only-ins replaceWithoutSep\" id=\"7\" data-gr-id=\"7\">siguiente<\/g>\/producto anterior de la misma categor\u00eda en funci\u00f3n de la fecha de publicaci\u00f3n del producto.&nbsp;&nbsp;<\/p>\n\n\n\n<p>Por ejemplo - Si la categor\u00eda A tiene 10 productos, a partir del primer producto el siguiente enlace mostrar\u00e1 los 10 productos. Despu\u00e9s de 10 productos el siguiente enlace se desactivar\u00e1.<\/p>\n\n\n\n<p>Pegue el siguiente filtro en <a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-custom-php-code\/#3.-in-child-theme\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (se abre en una nueva pesta\u00f1a)\">archivo functions.php del tema hijo<\/a>.&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>function astra_woo_product_previous_post_nav( $args ) {\r\n\r\n    $args = array(\r\n        'format'         => '%link',\r\n        'link'           => '',\r\n        'in_same_term'   => true,\r\n        'excluded_terms' => '',\r\n        'taxonomy'       => 'product_cat',\r\n    );\r\n    return $args;\r\n    }\r\n    add_filter( 'astra_woo_product_previous_post_nav_args', 'astra_woo_product_previous_post_nav' );\r\n    \r\n    function astra_woo_product_next_post_nav( $args ) {\r\n    \r\n    $args = array(\r\n        'format'         => '%link',\r\n        'link'           => '',\r\n        'in_same_term'   => true,\r\n        'excluded_terms' => '',\r\n        'taxonomy'       => 'product_cat',\r\n    );\r\n    return $args;\r\n    }\r\n    add_filter( 'astra_woo_product_next_post_nav_args', 'astra_woo_product_next_post_nav' );<\/code><\/pre>\n\n\n\n<p>Desde el argumento de enlace de filtro anterior se puede actualizar de la siguiente manera -<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>enlace: Si desea actualizar los iconos de enlace siguiente y anterior para la navegaci\u00f3n, actualice este argumento. Puede utilizar la etiqueta <i> de varias bibliotecas de fuentes. Para ello, deber\u00e1 cargar la biblioteca de fuentes correspondiente en Astra.\u00a0<a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-font-awesome-icons-in-astra\/\" target=\"_blank\" rel=\"noreferrer noopener\">Aqu\u00ed\u00a0<\/a>es el <a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-font-awesome-icons-in-astra\/\" target=\"_blank\" data-type=\"URL\" data-id=\"https:\/\/git-staging.wpastra.com\/docs\/add-font-awesome-icons-in-astra\" rel=\"noreferrer noopener\">art\u00edculo <\/a>que muestra c\u00f3mo Font Awesome Icons se puede utilizar con Astra.\u00a0<\/li><\/ul>","protected":false},"excerpt":{"rendered":"<p>Astra Pro Addon plugin de WooCommerce permite mostrar la navegaci\u00f3n en la p\u00e1gina de un solo producto. Consulte un documento aqu\u00ed para ver la opci\u00f3n en detalle. Habilitando esta opci\u00f3n se a\u00f1adir\u00e1n los botones de enlace anterior y siguiente en la p\u00e1gina de producto \u00fanico de WooCommerce.  Por defecto, al hacer clic en el bot\u00f3n siguiente, se mostrar\u00e1 un producto en [...]<\/p>","protected":false},"author":20,"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-30100","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-general"},"spectra_custom_meta":{"_wp_old_slug":["display-products-from-same-caegory-with-navigation|display-products-from-same-caegory-with-navigation","display-products-from-same-caegory-with-navigation|display-products-from-same-caegory-with-navigation","display-products-from-same-category-with-navigation","display-products-from-same-category-with-navigation-directed","products-from-same-category-with-navigation"],"_yoast_wpseo_primary_docs_category":["108"],"_wp_page_template":["default"],"wpil_sync_report3":["1"],"wpil_links_inbound_internal_count":["1"],"wpil_links_inbound_internal_count_data":["a:1:{i:0;a:9:{s:3:\"url\";s:89:\"https:\/\/git-staging.wpastra.com\/docs\/display-products-from-same-category-with-navigation\/\";s:8:\"url_real\";s:89:\"https:\/\/git-staging.wpastra.com\/docs\/display-products-from-same-category-with-navigation\/\";s:4:\"host\";s:11:\"wpastra.com\";s:9:\"host_real\";s:11:\"wpastra.com\";s:8:\"internal\";b:1;s:7:\"post_id\";s:5:\"30137\";s:6:\"anchor\";s:13:\"Documentation\";s:15:\"added_by_plugin\";b:0;s:10:\"post_title\";s:14:\"Version 1.6.12\";}}"],"wpil_links_outbound_internal_count":["4"],"wpil_links_outbound_internal_count_data":["a:4:{i:0;a:9:{s:3:\"url\";s:65:\"https:\/\/git-staging.wpastra.com\/docs\/woocommerce-module-overview\/\";s:8:\"url_real\";s:65:\"https:\/\/git-staging.wpastra.com\/docs\/woocommerce-module-overview\/\";s:4:\"host\";s:11:\"wpastra.com\";s:9:\"host_real\";s:11:\"wpastra.com\";s:8:\"internal\";b:1;s:7:\"post_id\";i:0;s:6:\"anchor\";s:17:\"WooCommerce addon\";s:15:\"added_by_plugin\";b:0;s:10:\"post_title\";s:0:\"\";}i:1;a:9:{s:3:\"url\";s:83:\"https:\/\/git-staging.wpastra.com\/docs\/single-product-woocommerce\/#product-navigation\";s:8:\"url_real\";s:83:\"https:\/\/git-staging.wpastra.com\/docs\/single-product-woocommerce\/#product-navigation\";s:4:\"host\";s:11:\"wpastra.com\";s:9:\"host_real\";s:11:\"wpastra.com\";s:8:\"internal\";b:1;s:7:\"post_id\";i:0;s:6:\"anchor\";s:5:\"here \";s:15:\"added_by_plugin\";b:0;s:10:\"post_title\";s:0:\"\";}i:2;a:9:{s:3:\"url\";s:75:\"https:\/\/git-staging.wpastra.com\/docs\/add-custom-php-code\/#3.-in-child-theme\";s:8:\"url_real\";s:75:\"https:\/\/git-staging.wpastra.com\/docs\/add-custom-php-code\/#3.-in-child-theme\";s:4:\"host\";s:11:\"wpastra.com\";s:9:\"host_real\";s:11:\"wpastra.com\";s:8:\"internal\";b:1;s:7:\"post_id\";i:0;s:6:\"anchor\";s:32:\"child theme's functions.php file\";s:15:\"added_by_plugin\";b:0;s:10:\"post_title\";s:0:\"\";}i:3;a:9:{s:3:\"url\";s:69:\"https:\/\/git-staging.wpastra.com\/docs\/add-font-awesome-icons-in-astra\/\";s:8:\"url_real\";s:69:\"https:\/\/git-staging.wpastra.com\/docs\/add-font-awesome-icons-in-astra\/\";s:4:\"host\";s:11:\"wpastra.com\";s:9:\"host_real\";s:11:\"wpastra.com\";s:8:\"internal\";b:1;s:7:\"post_id\";i:0;s:6:\"anchor\";s:10:\"Here&nbsp;\";s:15:\"added_by_plugin\";b:0;s:10:\"post_title\";s:0:\"\";}}"],"wpil_links_outbound_external_count":["0"],"wpil_links_outbound_external_count_data":["a:0:{}"],"wpil_sync_report2_time":["2019-09-05T12:01:37+00:00"],"_edit_lock":["1658412530:86"],"_edit_last":["86"],"onesignal_meta_box_present":["1"],"onesignal_send_notification":[""],"site-sidebar-layout":["default"],"site-content-layout":["default"],"theme-transparent-header-meta":["default"],"_yoast_wpseo_content_score":["90"],"_ppc_meta_key":["a:11:{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_key2\";s:23:\"Featured Image Assigned\";s:8:\"ppc_key3\";s:17:\"Category Selected\";s:8:\"ppc_key5\";s:15:\"Title is Catchy\";s:8:\"ppc_key6\";s:22:\"Social Images Assigned\";s:8:\"ppc_key7\";s:8:\"Done SEO\";s:8:\"ppc_key8\";s:28:\"Spelling and Grammar Checked\";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\";}"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"_yoast_wpseo_title":["How to Navigate Between Same Category Products from a Single Product Page?"],"essb_pc_facebook":[""],"essb_pc_facebook_like":[""],"essb_pc_twitter":[""],"essb_pc_google":[""],"essb_pc_pinterest":[""],"essb_pc_linkedin":[""],"essb_pc_digg":[""],"essb_pc_del":[""],"essb_pc_stumbleupon":[""],"essb_pc_tumblr":[""],"essb_pc_vk":[""],"essb_pc_print":[""],"essb_pc_mail":[""],"essb_pc_flattr":[""],"essb_pc_reddit":[""],"essb_pc_buffer":[""],"essb_pc_love":[""],"essb_pc_weibo":[""],"essb_pc_pocket":[""],"essb_pc_xing":[""],"essb_pc_ok":[""],"essb_pc_mwp":[""],"essb_pc_more":[""],"essb_pc_whatsapp":[""],"essb_pc_meneame":[""],"essb_pc_blogger":[""],"essb_pc_amazon":[""],"essb_pc_yahoomail":[""],"essb_pc_gmail":[""],"essb_pc_aol":[""],"essb_pc_newsvine":[""],"essb_pc_hackernews":[""],"essb_pc_evernote":[""],"essb_pc_myspace":[""],"essb_pc_mailru":[""],"essb_pc_viadeo":[""],"essb_pc_line":[""],"essb_pc_flipboard":[""],"essb_pc_comments":[""],"essb_pc_yummly":[""],"essb_pc_sms":[""],"essb_pc_viber":[""],"essb_pc_telegram":[""],"essb_pc_subscribe":[""],"essb_pc_skype":[""],"essb_pc_messenger":[""],"essb_pc_kakaotalk":[""],"essb_pc_share":[""],"essb_pc_livejournal":[""],"essb_pc_yammer":[""],"essb_pc_meetedgar":[""],"essb_pc_fintel":[""],"essb_pc_mix":[""],"essb_pc_instapaper":[""],"essb_pc_copy":[""],"_ht_kb_post_views_count":["1"],"_ht_kb_usefulness":["0"],"_ht_article_order_108":["30100"],"wp_last_modified_info":["July 21, 2022 @ 7:38 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"views":["3968"],"helpful":["2"],"unhelpful":["1"],"redirects":["4"],"_yoast_wpseo_estimated-reading-time-minutes":["2"],"rank_math_primary_docs_category":["108"],"rank_math_title":["How to Navigate Between Same Category Products from a Single Product Page?"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["926"],"rank_math_internal_links_processed":["1"],"_wplmi_last_modified":["2022-07-21 19:38:48"],"rank_math_seo_score":["10"],"pfd_related_docs":[""],"_trp_automatically_translated_slug_es_ES":["productos-de-la-misma-categoria-dirigida-con-navegacion"],"_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:5:{i:0;s:14:\"core\/paragraph\";i:1;s:9:\"core\/code\";i:2;s:9:\"core\/list\";i:3;s:14:\"uagb\/container\";i:4;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1778861215\";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":"Anjali","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/anjalic\/"},"uagb_comment_info":0,"uagb_excerpt":"Astra Pro Addon plugin&#8217;s WooCommerce addon allows displaying navigation on the single product page. Refer a document here to see the option in detail. Enabling this option will add previous and next button link on the WooCommerce single product page.&nbsp; By default, when you click on the next button, a product will be displayed on&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/30100"}],"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\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=30100"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/30100\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=30100"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=30100"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=30100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}