Creates content-search.php and removes is_search() check from content.php

This commit is contained in:
Slobodan Manic 2014-06-15 13:05:23 +02:00
parent 31ac4d2b2d
commit 6cb3c485ba
2 changed files with 56 additions and 7 deletions

View file

@ -15,11 +15,6 @@
<?php endif; ?>
</header><!-- .entry-header -->
<?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>', '_s' ) ); ?>
<?php
@ -29,7 +24,6 @@
) );
?>
</div><!-- .entry-content -->
<?php endif; ?>
<footer class="entry-footer">
<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
@ -60,4 +54,4 @@
<?php edit_post_link( __( 'Edit', '_s' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->
</article><!-- #post-## -->