Advertisement
alchymyth

category.php 2012

Dec 19th, 2012
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.08 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The template for displaying Category Archive pages.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Twenty_Twelve
  7.  * @since Twenty Twelve 1.0
  8.  */
  9.  
  10. get_header(); ?>
  11.  
  12.     <section id="primary" class="site-content">
  13.         <div id="content" role="main">
  14.  
  15.         <?php if ( have_posts() ) : ?>
  16.             <header class="archive-header">
  17.                 <h1 class="archive-title"><?php
  18.                     _e( 'Archives', 'twentytwelve' );
  19.                 ?></h1>
  20.             </header><!-- .archive-header -->
  21.  
  22.             <?php
  23.             /* Start the Loop */
  24.             while ( have_posts() ) : the_post();
  25.  
  26.                 /* Include the post format-specific template for the content. If you want to
  27.                  * this in a child theme then include a file called called content-___.php
  28.                  * (where ___ is the post format) and that will be used instead.
  29.                  */
  30.                 get_template_part( 'content', 'category' );
  31.  
  32.             endwhile;
  33.  
  34.             twentytwelve_content_nav( 'nav-below' );
  35.             ?>
  36.  
  37.         <?php else : ?>
  38.             <?php get_template_part( 'content', 'none' ); ?>
  39.         <?php endif; ?>
  40.  
  41.         </div><!-- #content -->
  42.     </section><!-- #primary -->
  43.  
  44. <?php get_sidebar(); ?>
  45. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement