Created
March 3, 2016 20:32
-
-
Save anonymous/e57d887b92b7e898eea4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Category | |
* | |
* Creates the structure of a category archive | |
* | |
* @package WordPress | |
* @subpackage Elite | |
* @since Custom | |
*/ | |
get_header(); ?> | |
<div id="content" class="site-content" role="main"> | |
<?php the_archive_description( '<div class="category-description">', '</div>' ); ?> | |
<?php if ( have_posts() ) : while (have_posts()) : the_post(); ?> | |
<article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?>> | |
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'elite' ), the_title_attribute( 'echo=0' ) ) ); ?>"><img src="<?php echo get_post_meta( $post->ID, "blog-image", TRUE ); ?>" /></a> | |
</article> | |
<?php endwhile ; else : ?> | |
<?php get_template_part( 'layouts/not-found' ); ?> | |
<?php endif ; ?> | |
<?php get_template_part( 'layouts/pagination' ); ?> | |
</div><!-- #content --> | |
<?php get_sidebar(); ?> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment