• Live group demo of Marketing Hub + Data Agent

    Standardize reporting, reduce manual work, and introduce AI without cleanup

    Join us on March 12
  • Ready to build your local HubSpot community?

    HUG leaders host events, spark connections, and create spaces where people learn and grow together.

    Become a HUG Leader

Blog Entry Previous and Next Buttons Don't Work

KReid76
Member | Platinum Partner
Member | Platinum Partner

I’m having an issue where only the following article (the second from the last) does not link properly from the “次の記事へ/Next Article” button in a blog. I checked and searched around for answers but can’t find any. Has anyone else experienced this issue and if so, how did you fix it?

Any help would be much appreciated, thank you!

{% if content.previous_post_slug %}
  <li class="link_page link_prev"><a href="/{{ content.previous_post_slug }}"><span class="icon icon-angle-r5"></span>前の記事へ</a></li>
{% endif %}

<li class="link_page link_return"><a class="link_page" href="./">一覧を見る</a></li>

{% if content.next_post_slug %}
  <li class="link_page link_next"><a href="/{{ content.next_post_slug }}">次の記事へ<span class="icon icon-angle-r5"></span></a></li>
{% endif %}

0 Upvotes
2 Replies 2
PamCotton
HubSpot Alumni
HubSpot Alumni

Hey @KReid76, thank you for posting in our Community!

 

Please double-check the content.next_post_slug value for the second-to-last article to ensure it is correctly assigned. I was able to find a similar idea here 

I want to invite our top experts @Kmoloo, @DanielSanchez @JRowan85 any recommendations for @KReid76 matter?

 

Thank you,

Pam

0 Upvotes
KReid76
Member | Platinum Partner
Member | Platinum Partner

@PamCotton 
Thank you Pam! Appreciate the help. Looking forward to any fixes.

0 Upvotes