Documentation for content-search.php inclusion

This commit is contained in:
Pascal Birchler 2014-05-13 08:37:56 +02:00
parent 8686937cc2
commit 27225d5b69
1 changed files with 8 additions and 1 deletions

View File

@ -19,7 +19,14 @@ get_header(); ?>
<?php /* Start the Loop */ ?> <?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?> <?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; ?> <?php endwhile; ?>