Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Override content template to show taxonomies even for index page
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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">→</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-## --> |