ThinkLemon

I think there used to be a tagline about (tag)soup here… anyway…


Also visit:


Wordpress Posts, Pages and pagination

Chewing on WordPress.

While rummaging through the WordPress theme code I stumbled upon this vague function call ‘link_pages()‘. Not knowing what is was or did, I looked it up in the documentation. And it seems that WordPress can paginate (lengthy) posts out-of-the-box. Great! But while the difference between a post and a page can be confusing for WordPress starters, adding pagination to the equation may be too much. :-)

That’s why it probably is somewhat hidden. (Or should I have read the manual?) Nonetheless, for people prone to write elaborate posts it could come in handy. All you need to do is add the following magic code in your post, <!--nextpage-->, and your off. Notice the pages links below.

Go to article page: 1 2 3

Previous article: Get Firebug! Next article: Major Google Earth Update (Maps to follow)

Related Articles

WordPress 2.0
Oh no, another upgrade. Now I've got one more thing to add to my to-do-list this holiday. :-( :-) Download WordPress 2.0 *Add to to-do: Call bosses to ask for another week off. ;-) Update: Although there have...
Is WordPress 2.0 that sluggish?
Directly after upgrading this weblog, little over a week ago, I felt it was a little bit sluggish. Compared to the 1.5 version I was running before. Maybe it could be just the webserver as...
Google Sitemaps weblog plugins
In the previous post I said that Google Sitemaps will accept your feeds just as well. And it does, no worries. But as I looked further into the dynamic generation of sitemaps I found there...

9 Responses to “Wordpress Posts, Pages and pagination”

  1. quasi.dot » Blog Archive » Read the rest of this article… Says:
    September 7th, 2006 at 11:12 pm

    […] Ho scoperto quasi per caso che Wordpress supporta “out of the box” la possibilità di paginare un post piuttosto lungo. Non che sia una necessita’ impellente (a meno di non voler provare a raddoppiare il numero di page view quasi per incanto…) ma e’ divertente. Il trucco consiste nell’inserire la parola magica <!–more–> nel punto in cui si vuole l’interruzione del testo. Se funziona lo si vede qua. Il suggerimento mi e’ arrivato via Think Lemon, anche se con riferimento al quicktag <!–nextpage–>. […]

  2. Paginar un post en Wordpress » paranovatos.com Says:
    September 25th, 2006 at 12:55 pm

    […] Buscando una manera de paginar en Wordpress porque en ocasiones me parece mas practico que la paginacion se presente 1 2 3 4 .. en vez de “pagina anterior - pagina siguiente”, me encontre este post Wordpress Posts, Pages and pagination entiendase Post Wordpress, paginas y paginacion, el cual daba un tip muy simple: si quieres paginar tu post (articulo), simplemente donde quieras paginar inserta la etiqueta […]

  3. Search Engine Optimization for Wordpress Blogs Says:
    April 28th, 2007 at 2:37 pm

    Wordpress Pagination Plugin For SEO…

    How well are your older posts being crawled by search engines?
    If your blog contains hundreds or thousands of posts you could be in DEEP trouble.
    Pagination will place your older posts deeper and deeper in your directory. Several layers or several doze…

  4. de ce? Says:
    June 8th, 2007 at 12:25 am

    sorry to re-open an year old post but next-page tag works even in the home page, all you have to do is to put in the index.php or home.php the code:

    <?php link_pages(); ?>

    PS: i was searching something about wordpress pagination and i found your post :)

  5. Bryce Says:
    July 13th, 2007 at 3:36 pm

    Wow, so simple. Thanks for this. No plugin needed then for this.

    Thanks for the research

  6. Silveira Neto Says:
    August 4th, 2007 at 10:59 pm

    I reallly hate this function.

  7. mImran Says:
    February 15th, 2008 at 2:53 pm

    This for html formats meaning posts ending with html creates pages like …html/1 …html/2 not that good.

  8. ex Says:
    March 5th, 2008 at 11:43 pm

    Not good? That’s perfect! Thx for info!

  9. yMladenov Says:
    May 14th, 2008 at 1:53 pm

    Thanks a lot!
    I’m writing just the lengthy articles you mentioned. BTW, I landed on this page from the “wordpress pagination” phrase on Google. Good seo :P

Reply to the article or a commenter

Comment on this article

Please note that your comment may be withheld from immediate publication. Keep your comment on-topic/on-commenter and your comment will be published ASAP. (Off-topic comments will be deleted at the moderator's discretion. Please us the contact form if you feel your comment has been deleted unduely.)


Search

Are you looking for:

Recent Comments

  • yMladenov: Thanks a lot! I’m writing just the lengthy articles you...
  • ex: Not good? That’s perfect! Thx for info!
  • SpaceCat85: It doesn’t seem to work on Macs because of User Agent...
  • mImran: This for html formats meaning posts ending with html creates pages...
  • Caspar: Hello Mick, Back in 2006 I did think about an open webinterface to...

Recent Articles

Archives


ThinkLemon is proudly powered by pure will-power, determination and lack of direction in general. Furthermore, it sits on a piece of hardware, I have no clue where, that somehow manages to support a webserver, a scripting language, a database and therefore ... a tool to fill this space.

Entries (RSS) | Comments (RSS).