Subscribe via RSS Feed

Split Wordpress Page Into 2 Pages

[ 4 ] April 27, 2009 | Abi

As a Wordpress blogger you will likely be familiar with “Read more” (<!–more–>) tag to cut the post and take only the first part of it to be displayed on your homepage, as we all know “More” tag is used to hide the rest part of the page from your homepage to prevents your homepage become lengthy and will show up after we click both the page title or the “read more” itself.

But now after we click the read more, we still face another problem. How about your page covers really detail story by which it become so lengthy in which your readers will have to scroll deep down to read it entirely till finish. In order to deal with such condition we can use <!–nextpage–> and put it to part that we want to split.

The quicktage, will produce pages list beneath the article, it looks generally like this:

Page 1, 2, 3

Here’s the steps:

1. Go to your single.php and find something similar to this:

<?php the_content(); ?>

2. Put the following tag right above the tag:

<?php wp_link_pages('before=<p>&after=</p>&next_or_number=number&pagelink=page %'); ?>

3. And it will look like this in whole:

<?php the_content(); ?>
<?php wp_link_pages('before=<p>&after=</p>&next_or_number=number&pagelink=page %'); ?>

And save your Single.php file.

And now the last step is pick one of your article or if happens you want to write very lengthy article, put the <!–nextpage–> in part of your article like in the screenshot:

Split Wordpress Page

That’s all and see you in the next post in SEO Blog.

Tags: , ,

Category: Tutorial, Wordpress

About Abi: Hi guys, check for the best hosting plans, visit this The Best Web Host View author profile.

Comments (4)

Trackback URL | Comments RSS Feed

  1. Melanie says:

    I like this, but am concerned with extra canonical and duplication. Less text per page increases the risk of duplication and lowers the overall text…. But on the other hand… If they are split in to their pages very “logically” you can end up with very targeted mini post situations which can target more narrow topics within a single post for additional searches. Still the users dislike switching pages, but indeed something to think deeper about.

  2. Abi says:

    Melanie, no need to be worry on canonical problem because the each page has its own permalink, the page number 2 will have this kind of permalink /post-title/2 and for page number 3 will have /post-title/3 so on, so this won’t effect to permalink canonical.

    Lowers the overall text shouldn’t be a problem too if the separated page has lengthy page.

    Thanks for the comment

  3. Bhanu says:

    Hi, this will not work for every template, is their any other way to split pages, like any plugin in wordpress. I searched many websites but no proper solution,
    Thanks