title: Edit search results template in Wordpress
body: <p>I have created a page template with a nice layout using the lovely custom fields plugin so my client can easily update the content.</p>
  
  <p>I created a loop on that page template that displays the relevant information nicely;</p>
  
  <p>Here is the loop I made:</p>
  
  <pre><code>        &lt;?php
      $args = array( 'post_type' =&gt; 'cripps_staff', 'posts_per_page' =&gt; 300 );
      $loop = new WP_Query( $args );
      while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post();
  
      echo '&lt;div class="col-md-3 spacetop"&gt;';
      echo '&lt;a href="'.get_permalink().'"&gt;';
      echo get_post_meta($post-&gt;ID,'image',true);
      echo '&lt;/a&gt;';
      echo '&lt;h2 class="staffname"&gt;';
      echo get_post_meta($post-&gt;ID,'staff_name',true);
      echo '&lt;/h2&gt;';
      echo '&lt;h2 class="staffrole"&gt;';
      echo get_post_meta($post-&gt;ID,'staff_role',true);
      echo '&lt;/h2&gt;';
      echo '&lt;h2 class="staffnumber"&gt;';
      echo get_post_meta($post-&gt;ID,'staff_telephone_number',true);
      echo '&lt;/h2&gt;';
      echo '&lt;h2 class="staffemail"&gt;';
      echo get_post_meta($post-&gt;ID,'staff_email_address',true);
      echo '&lt;/h2&gt;';
      echo '&lt;/div&gt;';
      endwhile;
      ?&gt;
  </code></pre>
  
  <p>I created taxonomies so the staff members are split into categories.</p>
  
  <p>I am then using a plugin called Taxonomies filter to create those dropdown options you will see. When you select an element in the dropdowns, Wordpress goes to/changes the page to a custom search results page I created. I want my search results to be displayed exactly like my loop on the People's template. Currently it just spits it out the title in a h1 tag.</p>
  
  <p>Here is the code I got from the Twenty Fourteen theme:</p>
  
  <pre><code>                &lt;?php
                  // Start the Loop.
                  while ( have_posts() ) : the_post();
  
                      /*
                       * Include the post format-specific template for the content. If you want to
                       * use this in a child theme, then include a file called called content-___.php
                       * (where ___ is the post format) and that will be used instead.
                       */
                      get_template_part( 'content', get_post_format() );
  
                  endwhile;
                  // Previous/next post navigation.
                  CrippsTheme_paging_nav();
  
              else :
                  // If no content, include the "No posts found" template.
                  get_template_part( 'content', 'none' );
  
              endif;
          ?&gt;
  </code></pre>
  
  <p>How can I get the search results to look exactly like my Post loop?</p>