This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

How to add pagination to a blog post?

Open 1 reply customizationgeneral
8 years ago · Last reply by Alex S 8 years 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 our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 8 years, 3 months ago

    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.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread