Split long posts into multiple pages in WordPress

Have you ever read an online article that was so long that it was split into several pages so you didn’t have to load one long page, and instead, you had several smaller pages, making it easier to digest? If you’re using WordPress as your blogging platform, this very same effect can be easily achieved!

This is a feature of WordPress that is not very well known, probably because blog posts are generally not meant to be as long as a New York Times article. Keep in mind that WordPress is not only used as a blogging platform, but it can also be used as a complete CMS for your website, so there may be times when you DO have articles that are long enough to require the use of pagination (pagination simply means “the numbering of the pages.”)

Other people may prefer to split up their one, long blog post into multiple posts instead. Whatever you choose to do, it’s entirely up to you; what I’m offering to you here is simply another option that you can use in the future.

In order to paginate your blog post, in the Write panel in your WordPress admin, switch to the Code view (if you are using the Visual view) and then enter the following code to wherever you want to break the post up into a new page. An example is also offered along with it:

...so John went to sleep.

<!--nextpage-->

The next day, he...

This will create a list of pages that make up that post, shown like this:

See Also

Page 1, 2, 3

And you’re all done!

Gary King is a professional freelance web developer, primarily using Ruby on Rails and PHP to create cool new websites. When heโ€™s not trying to take over the world one blog at a time, you can find him mulling over his thoughts at King Gary.

Feeling stuck in self-doubt?

Stop trying to fix yourself and start embracing who you are. Join the free 7-day self-discovery challenge and learn how to transform negative emotions into personal growth.

Join Free Now

Picture of Gary King

Gary King

RECENT ARTICLES

TRENDING AROUND THE WEB

People who take long drives to clear their mind often display these 8 behaviors, says a psychologist

People who take long drives to clear their mind often display these 8 behaviors, says a psychologist

Global English Editing

5 zodiac signs that naturally excel in high-pressure jobs

5 zodiac signs that naturally excel in high-pressure jobs

Parent From Heart

People who grew up away from their parents often display these 9 unique traits

People who grew up away from their parents often display these 9 unique traits

Global English Editing

4 zodiac signs who are always underestimated but end up proving everyone wrong

4 zodiac signs who are always underestimated but end up proving everyone wrong

My Inner Creative

6 zodiac signs who are strong on the surface but emotionally vulnerable underneath

6 zodiac signs who are strong on the surface but emotionally vulnerable underneath

Parent From Heart

The art of instant connection: 7 tricks socially skilled people use without fail

The art of instant connection: 7 tricks socially skilled people use without fail

Hack Spirit