{"id":13629,"date":"2026-01-07T09:07:57","date_gmt":"2026-01-07T09:07:57","guid":{"rendered":"https:\/\/www.copebusiness.com\/?p=13629"},"modified":"2026-02-06T12:16:04","modified_gmt":"2026-02-06T12:16:04","slug":"show-related-pages-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.copebusiness.com\/fr\/wordpress\/afficher-les-pages-en-mot-press-liees\/","title":{"rendered":"How to Show Related Pages in WordPress"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Displaying related pages on your WordPress site is a smart way to keep visitors engaged, reduce bounce rates, and strengthen internal linking for better SEO. Unlike posts, pages don&#8217;t have built-in categories or tags, so showing related content requires plugins or custom code. At Cope Business, we often implement related content features during our <a href=\"https:\/\/www.copebusiness.com\/technical-seo-services\/technical-seo-audit-service\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/www.copebusiness.com\/technical-seo-services\/technical-seo-audit-service\/\" rel=\"noreferrer noopener\">technical SEO audit services<\/a> to help clients improve site navigation and rankings. This guide covers two effective methods to add related pages, with step-by-step instructions suitable for beginners.<\/p><div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">On this page<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #0a0a0a;color:#0a0a0a\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #0a0a0a;color:#0a0a0a\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.copebusiness.com\/fr\/wordpress\/afficher-les-pages-en-mot-press-liees\/#Why_Show_Related_Pages_in_WordPress\" >Why Show Related Pages in WordPress?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.copebusiness.com\/fr\/wordpress\/afficher-les-pages-en-mot-press-liees\/#Method_1_Using_the_Yet_Another_Related_Posts_Plugin_YARPP\" >Method 1: Using the Yet Another Related Posts Plugin (YARPP)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.copebusiness.com\/fr\/wordpress\/afficher-les-pages-en-mot-press-liees\/#Method_2_Manually_with_Code_Using_Tags_and_Custom_Taxonomy\" >Method 2: Manually with Code Using Tags and Custom Taxonomy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.copebusiness.com\/fr\/wordpress\/afficher-les-pages-en-mot-press-liees\/#Additional_Tips_for_Related_Pages\" >Additional Tips for Related Pages<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n\n<p class=\"wp-block-paragraph\">Whether you&#8217;re running a business site, knowledge base, or blog, related pages can highlight important content and encourage deeper exploration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Show_Related_Pages_in_WordPress\"><\/span>Why Show Related Pages in WordPress?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Improves user experience by suggesting relevant content.<\/li>\n\n\n\n<li>Increases pageviews and time on site.<\/li>\n\n\n\n<li>Boosts SEO through internal links and better crawlability.<\/li>\n\n\n\n<li>Reduces bounce rates by keeping visitors longer.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Pages like &#8220;About Us&#8221; or &#8220;Services&#8221; can link to related ones like &#8220;Contact&#8221; or &#8220;Pricing&#8221; for better flow.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_1_Using_the_Yet_Another_Related_Posts_Plugin_YARPP\"><\/span>Method 1: Using the Yet Another Related Posts Plugin (YARPP)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">YARPP is a free, powerful plugin that automatically suggests related pages based on an advanced algorithm.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step-by-Step Setup<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install and activate YARPP from <strong>Plugins &gt; Add New<\/strong>.<\/li>\n\n\n\n<li>Go to <strong>Settings &gt; YARPP<\/strong> to configure.<\/li>\n\n\n\n<li>In the <strong>Relatedness Options<\/strong> section, check the <strong>Pages<\/strong> box to include them in calculations.<\/li>\n\n\n\n<li>Adjust the <strong>Match threshold<\/strong> (start at 1\u20135; higher is stricter).<\/li>\n\n\n\n<li>Customize the algorithm by weighting titles, bodies, categories, and tags.<\/li>\n\n\n\n<li>In <strong>Automatic Display Options<\/strong>, select where to show (posts, pages, media), max items (e.g., 5), theme (list, thumbnails, custom), and order (score, date, title).<\/li>\n\n\n\n<li>Enable RSS feed integration and REST API if needed for apps.<\/li>\n\n\n\n<li>Save changes\u2014related pages will appear automatically at the bottom of your content.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Tips<\/strong>: If your host blocks YARPP due to database load, switch to a managed provider like SiteGround. Test on a staging site first.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_2_Manually_with_Code_Using_Tags_and_Custom_Taxonomy\"><\/span>Method 2: Manually with Code Using Tags and Custom Taxonomy<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This no-plugin method adds tags to pages and uses code to query related ones\u2014lightweight and customizable.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step-by-Step Setup<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install and activate the <strong>Pages with category and tag<\/strong> plugin to enable tags on pages.<\/li>\n\n\n\n<li>Edit your pages and add relevant tags (e.g., &#8220;company&#8221; for About, Privacy, Contact pages).<\/li>\n\n\n\n<li>Install <strong>WPCode<\/strong> (free) for safe code addition.<\/li>\n\n\n\n<li>Go to <strong>Code Snippets &gt; Add Snippet<\/strong> and create a new one (e.g., &#8220;Related Pages&#8221;).<\/li>\n\n\n\n<li>Paste this PHP code in the snippet:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>PHP<code>function wpb_related_pages() { $orig_post = $post; global $post; $tags = wp_get_post_tags($post->ID); if ($tags) { $tag_ids = array(); foreach($tags as $individual_tag) $tag_ids&#91;] = $individual_tag->term_id; $args=array( 'post_type' => 'page', 'tag__in' => $tag_ids, 'post__not_in' => array($post->ID), 'posts_per_page'=>5 ); $my_query = new WP_Query( $args ); if( $my_query->have_posts() ) { echo '&lt;div id=\"relatedpages\">&lt;h3>Related Pages&lt;\/h3>&lt;ul>'; while( $my_query->have_posts() ) { $my_query->the_post(); ?> &lt;li>&lt;div class=\"relatedthumb\">&lt;a href=\"&lt;? the_permalink()?>\" rel=\"bookmark\" title=\"&lt;?php the_title(); ?>\">&lt;?php the_post_thumbnail('thumb'); ?>&lt;\/a>&lt;\/div> &lt;div class=\"relatedcontent\"> &lt;h3>&lt;a href=\"&lt;? the_permalink()?>\" rel=\"bookmark\" title=\"&lt;?php the_title(); ?>\">&lt;?php the_title(); ?>&lt;\/a>&lt;\/h3> &lt;?php the_time('M j, Y') ?> &lt;\/div> &lt;\/li> &lt;? } echo '&lt;\/ul>&lt;\/div>'; } else { echo \"No Related Pages Found:\"; } } $post = $orig_post; wp_reset_query(); }<\/code><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Set the snippet to active and save.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Edit your page template (e.g., page.php in a child theme) and insert &lt;?php wpb_related_pages(); ?> where you want the section to appear.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Tips<\/strong>: Add tags to at least a few pages first to see results. Customize CSS for styling thumbnails and lists. This method is lighter on resources than plugins.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Additional_Tips_for_Related_Pages\"><\/span>Additional Tips for Related Pages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Test Performance<\/strong>: Ensure the feature doesn&#8217;t slow your site\u2014use caching plugins like WP Rocket.<\/li>\n\n\n\n<li><strong>SEO Boost<\/strong>: Related links improve internal linking\u2014optimize with keywords in anchors.<\/li>\n\n\n\n<li><strong>Mobile-Friendly<\/strong>: Check display on phones; thumbnails should be responsive.<\/li>\n\n\n\n<li><strong>Customization<\/strong>: For advanced algorithms, YARPP Pro adds more options.<\/li>\n\n\n\n<li><strong>Alternatives<\/strong>: If focusing on posts, consider Contextual Related Posts plugin.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Implementing related pages can significantly enhance engagement and SEO on your site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Need help adding this feature or optimizing your WordPress setup? <a href=\"https:\/\/www.copebusiness.com\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/www.copebusiness.com\/\" rel=\"noreferrer noopener\">Contact Cope Business<\/a> for a free technical SEO consultation\u2014we&#8217;ll review your site and provide tailored solutions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Displaying related pages on your WordPress site is a smart way to keep visitors engaged, reduce bounce rates, and strengthen [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":13677,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"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":"","ast-disable-related-posts":"","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":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[177],"tags":[],"class_list":["post-13629","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/www.copebusiness.com\/fr\/wp-json\/wp\/v2\/posts\/13629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.copebusiness.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.copebusiness.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.copebusiness.com\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.copebusiness.com\/fr\/wp-json\/wp\/v2\/comments?post=13629"}],"version-history":[{"count":2,"href":"https:\/\/www.copebusiness.com\/fr\/wp-json\/wp\/v2\/posts\/13629\/revisions"}],"predecessor-version":[{"id":13754,"href":"https:\/\/www.copebusiness.com\/fr\/wp-json\/wp\/v2\/posts\/13629\/revisions\/13754"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.copebusiness.com\/fr\/wp-json\/wp\/v2\/media\/13677"}],"wp:attachment":[{"href":"https:\/\/www.copebusiness.com\/fr\/wp-json\/wp\/v2\/media?parent=13629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.copebusiness.com\/fr\/wp-json\/wp\/v2\/categories?post=13629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.copebusiness.com\/fr\/wp-json\/wp\/v2\/tags?post=13629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}