{"id":13666,"date":"2019-08-19T08:20:58","date_gmt":"2019-08-19T08:20:58","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=13666"},"modified":"2021-04-20T06:22:49","modified_gmt":"2021-04-20T06:22:49","slug":"how-to-add-related-posts-on-single-pages","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-add-related-posts-on-single-pages\/","title":{"rendered":"How to add related posts on single pages"},"content":{"rendered":"\n<p>Its allows you to display a list of related posts on your single posts and which makes them more relevant and more likely to be of interest to your readers.<\/p>\n\n\n\n<p>You will find this option in the<strong>&nbsp;WordPress Dashboard<\/strong>&nbsp;-&gt; Navigate to&nbsp;<strong>AMP option panel&nbsp;<\/strong>-&gt;&nbsp;<strong>Design<\/strong>&nbsp;-&gt;<strong>&nbsp;Single<\/strong> -&gt; Enable \u201c<strong>Related Posts<\/strong>\u201d option.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"462\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/9-1024x462.png\" alt=\"\" class=\"wp-image-16036\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/9-1024x462.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/9-300x135.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/9-768x347.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/9-50x23.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/9-60x27.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/9-100x45.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/9.png 1305w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul><li><strong>Related Post:&nbsp;<\/strong>Related post on post pages can be controlled from Single Section. Here you can choose a&nbsp;specific category from which you want to show related posts.<\/li><li><strong>Related Post By:&nbsp;<\/strong>By using this option we have two list categories and Tags once we select this option that post type will be displayed on a single page.<\/li><li><strong>Image:<\/strong> Once you enable this option you can display image along with the title.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"882\" height=\"293\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/8-1.png\" alt=\"\" class=\"wp-image-16038\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/8-1.png 882w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/8-1-300x100.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/8-1-768x255.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/8-1-50x17.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/8-1-60x20.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/8-1-100x33.png 100w\" sizes=\"(max-width: 882px) 100vw, 882px\" \/><\/figure>\n\n\n\n<ul><li><strong>Excerpt:<\/strong> Once you enable this option you can display excerpt along with the title and image.<\/li><li><strong>Link to Non-AMP:<\/strong>&nbsp;If you enable this option this link will be redirected to Non-AMP single pages.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"904\" height=\"201\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/4-1.png\" alt=\"\" class=\"wp-image-13674\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/4-1.png 904w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/4-1-300x67.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/4-1-768x171.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/4-1-50x11.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/4-1-60x13.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/4-1-100x22.png 100w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/figure>\n\n\n\n<ul><li><strong>Sort Related Posts Randomly:<\/strong> Once you enable this option In-content post display randomly. <\/li><li><strong>Number of Related Post:\u00a0<\/strong>You can also control Number of related posts to show on Single Posts. By default, it is 3.<\/li><li><strong>By Last X Days:<\/strong> If you enable this option you can target which number of you want to display the related posts<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"806\" height=\"159\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/04\/69.png\" alt=\"\" class=\"wp-image-18080\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/04\/69.png 806w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/04\/69-300x59.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/04\/69-768x152.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/04\/69-50x10.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/04\/69-60x12.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2021\/04\/69-100x20.png 100w\" sizes=\"(max-width: 806px) 100vw, 806px\" \/><\/figure>\n\n\n\n<ul><li><strong>UTM Tracking:&nbsp;<\/strong>Enable this option to add UTM tracking to all your related post.<\/li><li><strong>Campaign Source:&nbsp;<\/strong>In this field you need to enter Campaign Source. Use \u2018&amp;\u2019 for adding parameters in the tracking. Example: utm_source=xxx&amp;utm_medium=xxx.<\/li><li>Click on the \u201c<strong>Save Changes<\/strong>\u201d button.<\/li><\/ul>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p>We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.<\/p>\n<div id=\"div-1\" class=\"hkb-feedback\">\n\t\t\t<strong class=\"ht-mobile-exit__title\">Ask your Questions Directly!<\/strong><br>\n\t\t\t<div class=\"hkb_widget_exit__content\" style=\"font-size: 14px;\">If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!<\/div>\n\t\t\t<a href=\"https:\/\/ampforwp.com\/support\/#contact\" id=\"button\" target=\"_blank\" rel=\"noopener noreferrer\"><button>Yes, I have a Question<\/button><\/a>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Its allows you to display a list of related posts on your single posts and which makes them more relevant and more likely to be of interest to your readers. You will find this option in the&nbsp;WordPress Dashboard&nbsp;-&gt; Navigate to&nbsp;AMP option panel&nbsp;-&gt;&nbsp;Design&nbsp;-&gt;&nbsp;Single -&gt; Enable \u201cRelated Posts\u201d option. Related Post:&nbsp;Related post&#8230;<\/p>\n","protected":false},"author":18,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[34],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/13666"}],"collection":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=13666"}],"version-history":[{"count":15,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/13666\/revisions"}],"predecessor-version":[{"id":18081,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/13666\/revisions\/18081"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=13666"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=13666"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=13666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}