• Resolved sanch3x

    (@sanch3x)


    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.

    http://wordpress.org/plugins/relevanssi/

Viewing 1 replies (of 1 total)
  • Thread Starter sanch3x

    (@sanch3x)

    This was actually an error on my part. I noticed there were actual double entries! How embarassing…

Viewing 1 replies (of 1 total)
  • The topic ‘Doubled search results’ is closed to new replies.