Advertisement
Guest User

category.php

a guest
Aug 5th, 2015
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.10 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The template for displaying Category pages.
  4.  *
  5.  * Learn more: http://codex.wordpress.org/Template_Hierarchy
  6.  *
  7.  * @package WordPress
  8.  * @subpackage Pronto
  9.  * @since Pronto 1.0
  10.  */
  11.  
  12. get_header(); ?>
  13.  
  14.     <header class="page-header archive-header">
  15.         <h1 class="page-header-title archive-title"><?php echo single_cat_title( '', false ); ?></h1>
  16.         <?php if ( category_description() ) : // Show an optional category description ?>
  17.         <div class="archive-meta"><?php echo category_description(); ?></div>
  18.         <?php endif; ?>
  19.     </header><!-- .archive-header -->
  20.     <div id="primary" class="content-area clr">
  21.         <div id="content" class="site-content" role="main">
  22.         <?php if ( have_posts() ) : ?>
  23.             <div id="infinite-wrap" class="grid clr">
  24.                 <?php while ( have_posts() ) : the_post(); ?>
  25.                     <?php get_template_part( 'content', get_post_format() ); ?>
  26.                 <?php endwhile; ?>
  27.             </div><!-- .grid -->
  28.             <?php wpex_pagination(); ?>
  29.         <?php else : ?>
  30.             <?php get_template_part( 'content', 'none' ); ?>
  31.         <?php endif; ?>
  32.         </div><!-- #content -->
  33.     </div><!-- #primary -->
  34.  
  35. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement