{"id":117113,"date":"2022-02-03T19:28:46","date_gmt":"2022-02-03T13:58:46","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=117113"},"modified":"2022-02-03T19:28:47","modified_gmt":"2022-02-03T13:58:47","slug":"move-related-posts-below-comments","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/move-related-posts-below-comments\/","title":{"rendered":"Mover las entradas relacionadas por debajo de los comentarios"},"content":{"rendered":"<p>Con el tema Astra, puedes mostrar entradas relacionadas en todas tus entradas. Este documento proporcionar\u00e1 un c\u00f3digo personalizado para mover las entradas relacionadas debajo de la secci\u00f3n de comentarios.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-the-result\">\u00bfCu\u00e1l es el resultado?<\/h2>\n\n\n\n<p>La secci\u00f3n de entradas relacionadas se muestra por defecto debajo del contenido de tu entrada. Adem\u00e1s, es una gran caracter\u00edstica que ayuda a tus usuarios a encontrar contenido adicional interesante de la misma categor\u00eda. Pero, al mismo tiempo, esto significa que tus usuarios podr\u00edan pasar por alto la secci\u00f3n de comentarios antes de pasar a un post relacionado.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1366\" height=\"945\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/02\/ast-3-7-related-posts-default.png\" alt=\"Related Posts\" class=\"wp-image-117114\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/02\/ast-3-7-related-posts-default.png 1366w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/02\/ast-3-7-related-posts-default-300x208.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/02\/ast-3-7-related-posts-default-1024x708.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/02\/ast-3-7-related-posts-default-768x531.png 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/figure>\n\n\n\n<p>Por lo tanto, es posible que desee mover esta secci\u00f3n por debajo de la secci\u00f3n de comentarios, permitiendo a su usuario ir primero a trav\u00e9s de los comentarios. Adem\u00e1s, puede hacerlo f\u00e1cilmente a\u00f1adiendo un c\u00f3digo personalizado a su sitio web.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1366\" height=\"945\" src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/02\/ast-3-7-related-posts-below-comments.png\" alt=\"Related Posts Below Comments\" class=\"wp-image-117115\" srcset=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/02\/ast-3-7-related-posts-below-comments.png 1366w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/02\/ast-3-7-related-posts-below-comments-300x208.png 300w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/02\/ast-3-7-related-posts-below-comments-1024x708.png 1024w, https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2022\/02\/ast-3-7-related-posts-below-comments-768x531.png 768w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-do-this\">\u00bfC\u00f3mo hacerlo?<\/h2>\n\n\n\n<p>Para desactivar los colores de Astra Global en Elementor, necesitas a\u00f1adir una acci\u00f3n. Puedes a\u00f1adir el siguiente c\u00f3digo personalizado al archivo functions.php de tu Tema Hijo:<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code># Move Related Posts Below Comments\n\r\nadd_action( 'astra_entry_before', function() {\r\n\tadd_filter( 'astra_get_option_enable-related-posts', '__return_false' );\r\n} );\r\nadd_action( 'astra_primary_content_bottom', function() {\r\n\tadd_filter( 'astra_get_option_enable-related-posts', '__return_true' );\r\n} );\r\nadd_action( 'astra_template_parts_content_top', 'action_to_update_related_post_markup', 1 );\r\nfunction action_to_update_related_post_markup() {\r\n\t$related_post_markup_instance = new Astra_Related_Posts_Markup();\r\n\tadd_action( 'comment_form_after', array( $related_post_markup_instance, 'astra_get_related_posts' ), 10 );\r\n}<\/code><\/pre>\n\n\n\n<p>Si no tiene instalado el tema infantil, compruebe lo siguiente <a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/install-astra-child-theme\/\">este art\u00edculo<\/a> sobre c\u00f3mo hacerlo.&nbsp;<br>Si no est\u00e1 seguro de c\u00f3mo a\u00f1adir este c\u00f3digo, consulte lo siguiente <a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/add-custom-php-code\/#3.-in-child-theme\">art\u00edculo<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Con el tema Astra, puedes mostrar entradas relacionadas en todas tus entradas. Este documento proporcionar\u00e1 un c\u00f3digo personalizado para mover las entradas relacionadas debajo de la secci\u00f3n de comentarios. \u00bfCu\u00e1l es el resultado? La secci\u00f3n de entradas relacionadas se muestra por defecto debajo del contenido de tus entradas. Adem\u00e1s, es una gran caracter\u00edstica que ayuda a tus usuarios a encontrar [...]<\/p>","protected":false},"author":70,"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":"","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":"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":[2109],"docs_tag":[],"class_list":{"0":"post-117113","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-astra-theme-pro-filters"},"spectra_custom_meta":{"wp_last_modified_info":["February 3, 2022 @ 7:28 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"_edit_lock":["1643896729:70"],"rank_math_seo_score":["68"],"rank_math_focus_keyword":["Related Posts Below Comments"],"rank_math_description":["Are you looking for a way to move Astra theme related posts below comments? Learn how to do this using a custom code."],"rank_math_primary_docs_category":["2109"],"_edit_last":["70"],"pfd_related_docs":[""],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"rank_math_internal_links_processed":["1"],"views":["11704"],"helpful":["2"],"unhelpful":["0"],"redirects":["3"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"4e4408a1a8506ed15ef1ceb0d65b4936\";s:6:\"images\";a:1:{i:0;i:117114;}}"],"_trp_automatically_translated_slug_es_ES":["mueva-los-mensajes-relacionados-debajo-de-los-comentarios"]},"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":"Nikola Mihajlovic","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/nikolam\/"},"uagb_comment_info":0,"uagb_excerpt":"With the Astra theme, you can display related posts on all your posts. This document will provide a custom code to move related posts below the comments section. What Is The Result? The related posts section is displayed below your post content by default. Also, it\u2019s a great feature that helps your users find additional&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/117113"}],"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\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=117113"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/117113\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=117113"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=117113"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=117113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}