Tips, Tricks & Best Practices

KReid76
Member | Platinum Partner
Member | Platinum Partner

Blog Entry Previous and Next Buttons Don't Work

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

Blog Entry Previous and Next Buttons Don't Work

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

Blog Entry Previous and Next Buttons Don't Work

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

0 Upvotes