1

I've found many pagination tutorials/plugins that work on pages displaying a list of posts such as index.php

E.g. - http://design.sparklette.net/teaches/how-to-add-wordpress-pagination-without-a-plugin

However I want this to display on single post pages (single.php) so you can navigate through to the next/prev post.

Any ideas?

2

I know Twenty Eleven include this functionality by default and I've come to expect it as default behavior, so I hope I'm not missing something here.

You should be able to add this to single.php by using the previous_post_link() and next_post_link() functions.

  • thanks. I've already got prev/next post links. I'm trying to add a graphical style pagination to the page. – fxfuture Oct 7 '11 at 4:23
  • Ahh, I see now. Sorry about that. I'll look around a bit. – Jeremy Felt Oct 7 '11 at 4:28
  • this link might be helpful: kinocreative.co.uk/hints-and-tips/… – Michael Oct 7 '11 at 9:46
1

There's a built-in template tag for this: wp_link_pages(). It's used in Twentyeleven in content-page.php.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.