Advertisement
Guest User

single.php

a guest
Sep 1st, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.39 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The Template for displaying all single posts.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Twenty_Eleven
  7.  * @since Twenty Eleven 1.0
  8.  */
  9.  
  10. get_header(); ?>
  11.  
  12.         <div id="primary">
  13.             <div id="content" role="main">
  14.  
  15.                 <?php while ( have_posts() ) : the_post(); ?>
  16.  
  17.                     <nav id="nav-single">
  18.                         <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
  19.                         <span class="nav-previous"><?php previous_post_link('%link', 'PREVIOUS IN CATEGORY', TRUE); ?> </span>
  20.                         <span class="nav-next"><?php NEXT_post_link('%link', 'NEXT IN CATEGORY', TRUE); ?> </span>
  21.                     </nav><!-- #nav-single -->
  22.                    
  23.                     <div class="page-header">
  24.                         <h1 class="page-title"><?php
  25.                         printf( __( '%s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' );
  26.                         ?></h1>
  27.  
  28.                         <?php
  29.                         $category_description = category_description();
  30.                         if ( ! empty( $category_description ) )
  31.                         echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
  32.                         ?>
  33.                     </div>
  34.  
  35.                     <?php get_template_part( 'content', 'single' ); ?>
  36.                    
  37.                     <?php comments_template( '', true ); ?>
  38.  
  39.                 <?php endwhile; // end of the loop. ?>
  40.  
  41.             </div><!-- #content -->
  42.         </div><!-- #primary -->
  43.     <?php get_sidebar(); ?><!-- ADDED - This is the sidebar call for single post pages-->
  44. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement