adding previous and next blog article

https://yogaspirit.mu/blogs/bien-etre/le-yoga-du-visage-au-feminin

Hello - i would like to be able to have the next and previous articles visible on each of my blog posts.

Hi @TBS2023 ,

You can use below liquid code for next and previous.
{{ blog.previous_article.url }}

{{ blog.next_article.url }}

https://shopify.dev/docs/api/liquid/objects/blog

Let me know if you need further assistance.

Thank you

where shall i add this please?

Hi @TBS2023 ,

You can use {{ blog.previous_article.url }} and {{ blog.next_article.url }} only on the blog page.

If you want to add the next and previous article in the article page, it is not possible using the liquid code.

You either need to use third party app or build your own custom app.

Let me know if you need any assistance.

Thank you

ok but on what page…i have a few blog pages

So i have managed to add this code

{% if blog.next_article != nil %} {% endif %}

{% if blog.previous_article != nil %}

{% endif %}

Is there a way to show the blog image as well?