<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I retrieve the previous and next articles? in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-do-I-retrieve-the-previous-and-next-articles/m-p/751128#M32689</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/485641"&gt;@m_engineer&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can use following Hubls to get the informations about the next/previous blog posts&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{{ content.next_post_featured_image }} {# shows the featured image of the next post if one exists #}

{{ content.next_post_featured_image_alt_text }} {# the alt-text for the next image #}

{{ content.next_post_name }} {# diplay the name of the next post #}

{{ content.next_post_slug }} {# the link to the next post #}

{{ content.previous_post_featured_image }} {# shows the featured image of the previous post if one exists #}

{{ content.previous_post_featured_image_alt_text }} {# the alt-text for the previous image #}

{{ content.previous_post_name }} {# diplay the name of the previous post #}

{{ content.previous_post_slug }} {# the link to the previous post #}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can find more build-in blog Hubls &lt;A href="https://developers.hubspot.com/docs/cms/hubl/variables#blog-variables" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way could be to create a custom blog listing module which displays X(most likely 3-4) posts of the particular blog with "&lt;A href="https://developers.hubspot.com/docs/cms/hubl/functions#blog-recent-posts" target="_blank" rel="noopener"&gt;blog_recent_posts&lt;/A&gt;" which will automatically show the newest X number of posts of the blog. With a little bit of HTML and CSS you can display them as cards below each post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2023 07:21:36 GMT</pubDate>
    <dc:creator>Anton</dc:creator>
    <dc:date>2023-02-03T07:21:36Z</dc:date>
    <item>
      <title>How do I retrieve the previous and next articles?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-do-I-retrieve-the-previous-and-next-articles/m-p/751108#M32688</link>
      <description>&lt;P&gt;Is there a way to use the Hubl function or something similar to get the previous and next posts of a blog?&lt;BR /&gt;I would like to incorporate this into the template if possible.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 06:04:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-do-I-retrieve-the-previous-and-next-articles/m-p/751108#M32688</guid>
      <dc:creator>m_engineer</dc:creator>
      <dc:date>2023-02-03T06:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I retrieve the previous and next articles?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-do-I-retrieve-the-previous-and-next-articles/m-p/751128#M32689</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/485641"&gt;@m_engineer&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can use following Hubls to get the informations about the next/previous blog posts&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{{ content.next_post_featured_image }} {# shows the featured image of the next post if one exists #}

{{ content.next_post_featured_image_alt_text }} {# the alt-text for the next image #}

{{ content.next_post_name }} {# diplay the name of the next post #}

{{ content.next_post_slug }} {# the link to the next post #}

{{ content.previous_post_featured_image }} {# shows the featured image of the previous post if one exists #}

{{ content.previous_post_featured_image_alt_text }} {# the alt-text for the previous image #}

{{ content.previous_post_name }} {# diplay the name of the previous post #}

{{ content.previous_post_slug }} {# the link to the previous post #}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can find more build-in blog Hubls &lt;A href="https://developers.hubspot.com/docs/cms/hubl/variables#blog-variables" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way could be to create a custom blog listing module which displays X(most likely 3-4) posts of the particular blog with "&lt;A href="https://developers.hubspot.com/docs/cms/hubl/functions#blog-recent-posts" target="_blank" rel="noopener"&gt;blog_recent_posts&lt;/A&gt;" which will automatically show the newest X number of posts of the blog. With a little bit of HTML and CSS you can display them as cards below each post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 07:21:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-do-I-retrieve-the-previous-and-next-articles/m-p/751128#M32689</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2023-02-03T07:21:36Z</dc:date>
    </item>
  </channel>
</rss>

