Skip to content
Browse files

Add single post navigation

  • Loading branch information...
1 parent a7f9d27 commit aacc323d7128a2c3f52292d7b7fcc0386bb26521 @lancewillett lancewillett committed Jul 3, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 source/templates/single.php
View
7 source/templates/single.php
@@ -15,6 +15,13 @@
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
+
+ <nav id="nav-single">
+ <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
+ <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">&larr;</span>', 'twentytwelve' ) . ' %title' ); ?></span>
+ <span class="nav-next"><?php next_post_link( '%link', '%title ' . __( '<span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?></span>
+ </nav><!-- #nav-single -->
+
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() )

0 comments on commit aacc323

Please sign in to comment.
Something went wrong with that request. Please try again.