Skip to content
This repository has been archived by the owner on Aug 10, 2020. It is now read-only.

Commit

Permalink
Add category and tag templates. Resolves #24
Browse files Browse the repository at this point in the history
  • Loading branch information
davidakennedy committed Jul 15, 2013
1 parent 4ac3ead commit c432a93
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 0 deletions.
51 changes: 51 additions & 0 deletions category.php
@@ -0,0 +1,51 @@
<?php
/**
* The template for displaying Category pages.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package accessiblezen
* @since accessiblezen 1.0
*/

get_header(); ?>

<section id="primary" class="content-area cf">
<main id="content" role="main">

<?php if ( have_posts() ) : ?>

<header class="page-header">
<h1 class="page-title">
<?php accessiblezen_archive_page_title_etc(); ?>
</header><!-- .page-header -->

<?php rewind_posts(); ?>

<?php accessiblezen_content_nav( 'nav-above' ); ?>

<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>

<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
?>

<?php endwhile; ?>

<?php accessiblezen_content_nav( 'nav-below' ); ?>

<?php else : ?>

<?php get_template_part( 'no-results', 'archive' ); ?>

<?php endif; ?>

</main><!-- #content -->
</section><!-- #primary .content-area -->

<?php get_footer(); ?>
51 changes: 51 additions & 0 deletions tag.php
@@ -0,0 +1,51 @@
<?php
/**
* The template for displaying Tag pages.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package accessiblezen
* @since accessiblezen 1.0
*/

get_header(); ?>

<section id="primary" class="content-area cf">
<main id="content" role="main">

<?php if ( have_posts() ) : ?>

<header class="page-header">
<h1 class="page-title">
<?php accessiblezen_archive_page_title_etc(); ?>
</header><!-- .page-header -->

<?php rewind_posts(); ?>

<?php accessiblezen_content_nav( 'nav-above' ); ?>

<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>

<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
?>

<?php endwhile; ?>

<?php accessiblezen_content_nav( 'nav-below' ); ?>

<?php else : ?>

<?php get_template_part( 'no-results', 'archive' ); ?>

<?php endif; ?>

</main><!-- #content -->
</section><!-- #primary .content-area -->

<?php get_footer(); ?>

0 comments on commit c432a93

Please sign in to comment.