Skip to content

Commit

Permalink
Override content template to show taxonomies even for index page
Browse files Browse the repository at this point in the history
  • Loading branch information
Inggo committed Feb 15, 2016
1 parent 387b9a0 commit 534d40e
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions content.php
@@ -0,0 +1,50 @@
<?php
/**
* @package Inggo-Sela
*/
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

<?php sela_post_thumbnail(); ?>

<header class="entry-header ">
<?php if ( is_single() ) : ?>
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<?php else : ?>
<?php the_title( '<h1 class="entry-title"><a href=" ' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?>
<?php endif; ?>
</header><!-- .entry-header -->

<div class="entry-body">

<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php sela_entry_meta(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>

<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'sela' ) ); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'sela' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<?php endif; ?>

<?php if ( 'post' == get_post_type() ) : ?>
<footer class="entry-meta">
<?php sela_footer_entry_meta(); ?>
</footer><!-- .entry-meta -->
<?php endif; ?>
</div><!-- .entry-body -->

</article><!-- #post-## -->

0 comments on commit 534d40e

Please sign in to comment.