Doubled search results
-
This is the code to my search.php file:
<?php get_header(); ?> <h1>Search Results For: "<?php echo $_GET['s']; ?>"</h1> <?php if( have_posts() ) { while( have_posts() ) { the_post(); include( get_template_directory() . '/includes/templates/search_result.inc.php' ); } wp_reset_query(); } ?> <a id="ld-more" href="#search">Load more search results</a> <?php get_footer();
When I search a term all results are doubled. The same post will be there twice and I’m not too sure why as I’m not doing anything fancy (you see the code above).
I’ve installed the latest version of the plugin, picked my custom post types to be included. As far as I can tell the results are correct except for the fact that they are doubled.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Doubled search results’ is closed to new replies.