• Hi everyone,

    I’m a bit of a wp noob and i can’t get this to work. I’ve created a custom search results page using the search.php. It has the code below in it.

    <?php
    update_option('current_page_template','standard');
    
    get_header();
    ?>
    
    <!--
    CONTENT
    -->
    <div class="content transAll">
    	<?php if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); ?>
    			<h1>Search Results</h1>
    			<?php the_title(); ?>
    		<?php endwhile; ?> 
    
    		<?php else : ?> 
    
    			<?php _e( 'Nothing Found' ); ?>
    	<?php endif; ?>
    </div>
    
    <!--
    CONTENT END
    -->
    
    <?php  get_footer(); ?>

    It was working on a standard search, but as soon as i installed searchWP it always returns no results. I have “posts, pages, media” all ticked.

    Am i doing something incorrectly here?

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘searchWP not returning any results’ is closed to new replies.