<?php /** * The template for displaying search results pages * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result * * @package Constructionn */ get_header(); /** * Before Posts hook * * @hooked constructionn_content_wrapper_start - 10 */ do_action( 'constructionn_before_posts_content' ); if ( have_posts() ) : /* Start the Loop */ while ( have_posts() ) : the_post(); /** * 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. */ echo get_template_part( 'template-parts/content', 'search' ); endwhile; endif; /** * After Posts hook * * @hooked constructionn_content_wrapper_end - 10 */ do_action( 'constructionn_after_posts_content' ); get_footer();