Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The Template for displaying all single posts.
- *
- * @package WordPress
- * @subpackage Twenty_Eleven
- * @since Twenty Eleven 1.0
- */
- get_header(); ?>
- <div id="primary">
- <div id="content" role="main">
- <?php while ( have_posts() ) : the_post(); ?>
- <nav id="nav-single">
- <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
- <span class="nav-previous"><?php previous_post_link('%link', 'PREVIOUS IN CATEGORY', TRUE); ?> </span>
- <span class="nav-next"><?php NEXT_post_link('%link', 'NEXT IN CATEGORY', TRUE); ?> </span>
- </nav><!-- #nav-single -->
- <div class="page-header">
- <h1 class="page-title"><?php
- printf( __( '%s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' );
- ?></h1>
- <?php
- $category_description = category_description();
- if ( ! empty( $category_description ) )
- echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
- ?>
- </div>
- <?php get_template_part( 'content', 'single' ); ?>
- <?php comments_template( '', true ); ?>
- <?php endwhile; // end of the loop. ?>
- </div><!-- #content -->
- </div><!-- #primary -->
- <?php get_sidebar(); ?><!-- ADDED - This is the sidebar call for single post pages-->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement