{"id":11370093,"date":"2019-03-29T11:05:34","date_gmt":"2019-03-29T11:05:34","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/display-related-posts-at-a-different-place\/"},"modified":"2019-03-29T11:05:34","modified_gmt":"2019-03-29T11:05:34","slug":"display-related-posts-at-a-different-place","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/display-related-posts-at-a-different-place\/","title":{"rendered":"Display related posts at a different place"},"content":{"rendered":"<p>Hi, <\/p>\n<p>I would like to use your plug-in to display related posts, that I use as Product pages.<br \/>\nI don&#8217;t need eCommerce features, so creating posts and relating them to each others is the best solution I came with in terms of simplicity and overall performances. <\/p>\n<p>What I don&#8217;t find out is how I can change the place the related posts are displayed at.<br \/>\nAs you can see on this screenshot, they are currently displayed under my post text blocks (https:\/\/ibb.co\/3Yf2GFs), but I have a widget beneath that I created through my page template: <\/p>\n<pre><code>&lt;article id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;\n\t&lt;?php if ( ! twentynineteen_can_show_post_thumbnail() ) : ?&gt;\n\t&lt;header class=&quot;entry-header&quot;&gt;\n\t\t&lt;?php get_template_part( &#039;template-parts\/header\/entry&#039;, &#039;header&#039; ); ?&gt;\n\t&lt;\/header&gt;\n\t&lt;?php endif; ?&gt;\n\n\t&lt;div class=&quot;entry-content product-template&quot;&gt;\n\t\t&lt;?php\n\t\tthe_content(\n\t\t\tsprintf(\n\t\t\t\twp_kses(\n\t\t\t\t\t\/* translators: %s: Name of current post. Only visible to screen readers *\/\n\t\t\t\t\t__( &#039;Continue reading&lt;span class=&quot;screen-reader-text&quot;&gt; &quot;%s&quot;&lt;\/span&gt;&#039;, &#039;twentynineteen&#039; ),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t&#039;span&#039; =&gt; array(\n\t\t\t\t\t\t\t&#039;class&#039; =&gt; array(),\n\t\t\t\t\t\t),\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\tget_the_title()\n\t\t\t)\n\t\t);\n\n\t\twp_link_pages(\n\t\t\tarray(\n\t\t\t\t&#039;before&#039; =&gt; &#039;&lt;div class=&quot;page-links&quot;&gt;&#039; . __( &#039;Pages:&#039;, &#039;twentynineteen&#039; ),\n\t\t\t\t&#039;after&#039;  =&gt; &#039;&lt;\/div&gt;&#039;,\n\t\t\t)\n\t\t);\n\t\t\n\t\techo &#039;&lt;div class=&quot;alignfull block-fullwidth locator&quot;&gt;&#039;;\n\t\t\n\t\techo &#039;&lt;h2&gt;&#039;;\n\t\tpll_e(&#039;Find yours wherever you are.&#039;);\n\t\techo &#039;&lt;\/h2&gt;&#039;;\n\t\t\n\t\techo &#039;&lt;p&gt;&#039;;\n\t\tpll_e(&#039;Our products and services are available in 20 countries in Europe, Africa, Oceania and South America. Thanks to a network formed of trusted retailers, we are able to deliver the VinPilot\u00ae product range to you, wherever you are.&#039;);\n\t\techo &#039;&lt;\/p&gt;&#039;;\n\t\t\n\t\techo &#039;&lt;p class=&quot;bouton&quot;&gt;&#039;;\n\t\techo &#039;&lt;a href=&quot;\/#&quot;&gt;&#039;;\n\t\tpll_e(&#039;Find your VinPilot&lt;sup&gt;\u00ae&lt;\/sup&gt;&#039;);\n\t\techo &#039;&lt;\/a&gt;&#039;;\n\t\techo &#039;&lt;\/p&gt;&#039;;\n\t\techo &#039;&lt;\/div&gt;&#039;;\n\t\t\n\t\techo &#039;&lt;h2&gt;&#039;;\n\t\tpll_e(&#039;You might also be interested in these products&#039;);\n\t\techo &#039;&lt;\/h2&gt;&#039;;\n\t\techo do_shortcode( &#039;[related_post]&#039; ); \n\t\t\n\n\t\t?&gt;\n\t&lt;\/div&gt;&lt;!-- .entry-content --&gt;\n\n&lt;\/article&gt;&lt;!-- #post-${ID} --&gt;<\/code><\/pre>\n<p>I would like to put the related posts after this widget.<br \/>\nCould you please indicate me which is the best solution to do so? <\/p>\n<p>Thank you very much<br \/>\nBest regards<br \/>\nFlorian<\/p>\n","protected":false},"template":"","class_list":["post-11370093","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11370093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11370093\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11370093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}