WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having issues understanding the worlds most simplest concept when it comes to building a single.php file and using pagination.

The code bellow shows a wordpress loop, its contents and then finally the pagination. How ever, the pagination does not show up for me and looking at twenty 10 theme shows this is how you are suppose to do it....So what's going on? This isn't a custom loop.

<div class="span6">
global $post;
$thumb_nail_args = array(
    'align' => 'centered', 
    'class' => 'thumbnail marginBottom20 marginTop20'

    while(have_posts()): the_post();
    <h1><?php the_title() ?></h1>
        <em><strong>Written by: </strong>
            <a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>">
                <?php the_author_meta('display_name'); ?></a>
    the_post_thumbnail('full', $thumb_nail_args);

    <ul class="pager paddingBottom20">
      <li class="previous">
        <?php next_posts_link(); ?>
      <li class="next">
        <?php previous_posts_link(); ?>

if('open' == $post->comment_status){

share|improve this question
up vote 0 down vote accepted

You need next_post_link and previous_post_link, not next_posts_link and previous_posts_link. See the plural on the last two? The ones with the 's' are for archive pagination. The ones without it are for single post to post pagination.

share|improve this answer
I figured it was something stupid like spelling – Kyle Adams Jan 13 '13 at 18:40

Your Answer


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.