web statistics

How To Split Long Posts and Pages in Wordpress Into Multiple Pages

Posted on June 2nd, 2009 under Uncategorized
ADVERTISMENTS
Share |

Sometimes Posts or Pages in pages in wordpress can get lengthy, which might bore the reader or can make the design look odd with its old length.Here’s how you can split you posts or pages into multiple pages using a simple shortcode in you post or page.

How To :

  1. Decide where in the page / post you want to the split and place this short code

    “<!—nextpage—>” [without quotes] and remember to insert this in the HTML editor.

    wp-pagination1
    wp-pagination-ex

  2. Now check if your theme supports pagination within posts and pages by looking for this piece of code in your single.php and page.php [ or a similar file according to the theme your using.]

    “<?php wp_link_pages(‘<p><strong>Pages:</strong> ‘, ‘</p>’, ‘number’); ?>”    [without quotes].

    wp-pagination-theme-code

    Incase you don’t find it in your theme, do insert it else you will not be able to see the page numbers of the post/page that it has been split into.Insert this code somewhere after or before the “the_content()” function.

  3. Note that the url will look something like this“http://www.xyz.com/post-title/1/”    — For Page 1
    http://www.xyz.com/post-title/2/”     — For page 2
  4. Now to the SEO part, you could use the canonical tag to eliminate the risk of duplicate content.

Written by Avinash

Browse Tech Yard for the latest & interesting web applications, Freewares, Wordpress Tips, Firefox Hacks and Addons, Mobile Phones, Windows - Linux - MAC OS Tricks.

Stumble Digg Technorati Reddit Delicious


Related Posts

5 Responses to “ How To Split Long Posts and Pages in Wordpress Into Multiple Pages ”

  1. Brock says:

    awesome! Didn’t know this was built into the core. Nice post.

  2. Charlie says:

    Thanks for this tip. I always wondered how it’s done. Now I know. Would you happen to know if this works withe WP-Pagenavi plugin?

  3. Numi says:

    Great tip… If only it worked right in my theme. It seems that when the second page is populated with text, it doesn’t carry the formatting to the second page (ie:blockquote) Does anyone know the fix for this?

  4. Awesome! Thank you for helping me to get this to work!



Leave a Reply

Subscribe to TECH YARD:

RSS

Grab the RSS feed for Free Updates!


subscribe

Get blog updates sent directly to your inbox by entering your email address above.

Popular Posts

Sorry. No data so far.