Sha256: b246d3bfb09cc943a49b8a91fe75dca58c90f2f01f3ed5c2f7640be4e6f06e24

Contents?: true

Size: 936 Bytes

Versions: 3

Compression:

Stored size: 936 Bytes

Contents

<?php
/**
 * The template for displaying Category pages.
 *
 * Used to display archive-type pages for posts in a category.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @category  Theme
 * @package   [starter]
 * @author    [Your Name]
 * @copyright 2012 [Your Name]
 */

get_header();

if ( have_posts() ):
	?>
	<header class="archive-header">
		<h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'starter' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1>
	<?php
	if ( category_description() ):
		// Show an optional category description ?>
		<div class="archive-meta"><?php echo category_description(); ?></div>
	<?php endif; ?>
	</header>
	<?php
	/* Start the Loop */
	while ( have_posts() ):
		the_post();

		get_template_part( 'content', get_post_format() );
	endwhile;

	do_action( 'pagination' );

	else:
		get_template_part( 'content', 'none' );
	endif;
get_footer();

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wordpress-starter-0.3 templates/project/category.php
wordpress-starter-0.2 templates/project/category.php
wordpress-starter-0.1 templates/starter/category.php