Home>Support>How to add pagination to a blog post?

How to add pagination to a blog post?

By Ricardo Penders, 13 days ago. Last reply by Alex S, 9 days ago.

Hi there,

I have several blog posts that contain a lot of content and I don’t want to split up the post into multiple ones
but I need to have a way to split up the content so that people can click a button at the end of the blog post
to go to the next part of the content.

I searched online already to change the theme by adding a bit of code (a function) and that will trigger pagination
whenever I add a shortcode in the blog post where I want to split up the content, adding the shortcode again will
add an extra page to the same blog post.

My question is if it’s ok for me to make those changes to the theme core files or is there a way to do this a little
bit easier?

My suggestion for the developers of SiteOrigin is to add this function to the themes as a standard, it’s not a lot of
code and it’s using the built-in shortcode function of wordpress.

Best regards,
Ricardo Penders

This is a free community support forum. Replies are not guaranteed. If you need professional email support, please purchase a SiteOrigin Premium license.

  1. 9 days, 2 hours ago Alex S Hi, I Work Here

    Hi Ricardo,

    Are you adding the code to a child theme? If not, I would recommend adding the code through Code Snippets. For reference, they’re basically the same, I just prefer Code Snippets for basic code. If you don’t use a Child theme or Code Snippets your code will be removed on theme update.

    My suggestion for the developers of SiteOrigin is to add this function to the themes as a standard, it’s not a lot of code and it’s using the built-in shortcode function of wordpress.

    I’ll forward your suggestion to the development team.

Please log in to post on our forums. Signing up is free.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More