Never show post results when performing a member search from header
authorLaury GvR <laury@gaslightmedia.com>
Wed, 22 May 2019 20:16:19 +0000 (16:16 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 22 May 2019 20:16:19 +0000 (16:16 -0400)
sections/search.php

index 8cd519a..a0b3f47 100644 (file)
 
                      <?php endif; ?>
 
-
-                    <?php if ( have_posts() && strlen( trim(get_search_query()) ) != 0 ) : ?>
-
-                        <?php
-                        /* 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.
-                             */
-                            get_template_part( 'parts/content-search' );
-
-                        endwhile;
-
-                        the_posts_navigation();
-
-                    else :
-
-                        get_template_part( 'parts/content-none' );
-
-                    endif; ?>
+                    <?php get_template_part( 'parts/content-none' ); ?>
 
                 </main><!-- #main -->
             </section><!-- #primary -->