Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
85 lines (59 sloc) 3.08 KB
<?php
/*
* CUSTOM POST TYPE TAXONOMY TEMPLATE
*
* This is the custom post type taxonomy template. If you edit the custom taxonomy name,
* you've got to change the name of this template to reflect that name change.
*
* For Example, if your custom taxonomy is called "register_taxonomy('shoes')",
* then your template name should be taxonomy-shoes.php
*
* For more info: http://codex.wordpress.org/Post_Type_Templates#Displaying_Custom_Taxonomies
*/
?>
<?php get_header(); ?>
<div id="content">
<div id="inner-content" class="wrap row">
<main id="main" class="col-xs-12 col-sm-8 col-md-8 col-lg-8" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
<h1 class="archive-title h2"><span><?php _e( 'Posts Categorized:', 'sepalandseedtheme' ); ?></span> <?php single_cat_title(); ?></h1>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?> role="article">
<header class="article-header">
<h3 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<p class="byline entry-meta vcard">
<?php printf( __( 'Posted', 'sepalandseedtheme' ).' %1$s %2$s',
/* the time the post was published */
'<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
/* the author of the post */
'<span class="by">'.__( 'by', 'sepalandseedtheme').'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
); ?>
</p>
</header>
<section class="entry-content">
<?php the_excerpt( '<span class="read-more">' . __( 'Read More &raquo;', 'sepalandseedtheme' ) . '</span>' ); ?>
</section>
<footer class="article-footer">
</footer>
</article>
<?php endwhile; ?>
<?php sepal_and_seed_page_navi(); ?>
<?php else : ?>
<article id="post-not-found" class="hentry">
<header class="article-header">
<h1><?php _e( 'Oops, Post Not Found!', 'sepalandseedtheme' ); ?></h1>
</header>
<section class="entry-content">
<p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'sepalandseedtheme' ); ?></p>
</section>
<footer class="article-footer">
<p><?php _e( 'This is the error message in the taxonomy-custom_cat.php template.', 'sepalandseedtheme' ); ?></p>
</footer>
</article>
<?php endif; ?>
</main>
<div class="col-xs-12 col-sm-4 col-md-4 col-lg-4">
<?php get_sidebar(); ?>
</div>
</div>
</div>
<?php get_footer(); ?>
You can’t perform that action at this time.