• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Technostarry

  • Home
  • Windows 8
  • Android
  • iOS
  • Web Apps
  • Web Browser
  • Hardware
  • About

How to Add Page Number in a Single Post in WordPress

April 30, 2011 by Saqib 2 Comments

There are some functionalities in WordPress, which very few people know about, and so is this new trick. Do you ever wanted to divide a single post in two different pages, well, now you can. With this code, you can split up a single WordPress post into multiple pages. The outcome would be that in a single post, you will be able to place pagination.

split wordpress posts

Split WordPress Posts into Multiple Pages

Sometimes you may think that a particular post is too long, and you may end up by writing that post in two parts. Now you don’t need to write a part 1 and part 2 for that post. Just directly type in the below code, and pagination will be automatically added at the end of the post. You can place this code wherever you want the next page to start.

<!–nextpage–>

This is also called Page-Link tag. Whenever you want a page break to appear, just place your cursor there and type in this code. Yes, its this simple. You probably didn’t thought that its this simple. This code is very useful for a long post, and you can make two or more pages out of a single post.

Now whenever you view the site, you will be able to see Page Numbers as links, in the bottom of the post. This will look something like this:

Pages: 1 2

If you’re on Page 1, then page 2 will be a link, and you can click on page 2 to open the next page. And vice versa if you are on Page 2, then Page 1 will be shown as link. You can place this Page-Link tag anywhere in a post, and whenever you wish to divide the page.

In most cases, this code should work without any problem. But if pagination is not showing up in your posts even after placing that next page tags, then you’ll need to add the following code in your single.php loop:

<?php wp_link_pages(); ?>

This is a superb way to divide a WordPress post into different pages. Now whenever you think to write about that long topic, split that post into multiple pages to offer your readers a good reading experience.

If you’re interested in changing the look and tweaking this Page-Link, then view this official codex.

Filed Under: WordPress

Reader Interactions

Comments

  1. Canberra says

    May 2, 2011 at 12:24 pm

    Thanks for sharing knowledge about Page-Link tag. It is very simple then I thought. I probably didn’t thought that its this simple.The amazing thing was it is very useful for a long post, and you can make two or more pages out of a single post….thanks again.

    Reply
  2. Mrinmay Bhattacharjee says

    April 30, 2011 at 1:12 am

    hmmm. Cool Post.

    It’s just like <!–more–> tag

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

STAY CONNECTED

  • Facebook
  • RSS
  • Twitter
  • YouTube

SUBSCRIBE

Subscribe now to get the latest updates from this blog right to your Inbox

Recent Posts

  • 6 Things to Remember Before Buying a Micro SD Card
  • 5 Best Android Stock Market Apps for India
  • Facebook App Alternatives for Android , and Why You Should Use Them
  • Kindle Oasis vs Voyage vs Paperwhite: Which one to Buy

Footer

Links

  • About
  • Subscribe
  • Contact
  • Advertise
  • Privacy Policy

Books on cloud storage services:

  • Mastering OneDrive And Office Online
  • Mastering Google Drive and Docs (With Tips)
  • Mastering Dropbox with Useful Tips and Apps

Must Read Articles

  • How to Change Default Apps on Android
  • 6 Tips to Increase Battery Life on Android 4.4 KitKat Devices
  • How to Transfer Documents and Files to your Kindle
  • 5 Best Free Offline Dictionary Apps for Android

© Copyright 2016 Technostarry · All Rights Reserved ·