Merge pull request #486 from swissspidy/issue-483

Improve documentation in search template to explain how to override content output for the file.
This commit is contained in:
Philip Arthur Moore 2014-05-13 14:49:11 +07:00
commit 57eadcfd17
1 changed files with 8 additions and 1 deletions

View File

@ -19,7 +19,14 @@ get_header(); ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'search' ); ?>
<?php
/**
* Run the loop for the search to output the results.
* If you want to overload this in a child theme then include a file
* called content-search.php and that will be used instead.
*/
get_template_part( 'content', 'search' );
?>
<?php endwhile; ?>