Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers

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.

share|improve this answer
    
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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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