Previous and Next Post Button URLs

I’m attempting to make custom buttons for post navigation at the bottom of a Pro Layout for single blog posts. The problem I’m having is figuring out what the url of the previous and next buttons should be.

What I have currently is {{dc:post:post_type_url post=“next”}} for the next button and {{dc:post:post_type_url post=“prev”}} for the previous button. The problem is both of these don’t work and just redirect to the homepage.

I know that the Post Navigation module exists. I tried using it, but the problem is that it shows both forward and back buttons no matter if you are the last post or first post (which I don’t want.)

Hello @santosfel5,

Thanks for reaching out. You are using the wrong dynamic content shortcode. You should be using the following:

{{dc:post:permalink post="next"}} and
{{dc:post:permalink post="prev"}}

Kindly let us know if this has worked out for you.

I just entered these both and they did not work. They just end up redirecting back to the homepage.

Hi @santosfel5,

Please provide us login credentials in a “Secure Note” so we can take a closer look.


Just sent you the secure note.

Hello @santosfel5,

Thanks for sharing the login credentials. I went ahead and checked your settings. It seems that you have set the column’s base tag as anchor tag <a>. Please note that you can not set multiple anchor tags inside the anchor tag. I would suggest you set the column tag as a DIV tag and then check it again.

Please have a look at the given screenshot in the secure note.

Hope it helps

Thank you, that has fixed the issue.

You are most welcome @santosfel5

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.