Relevanssi - A Better Search
[resolved] No results (4 posts)

  1. bionicoz
    Posted 2 years ago #

    I used relevanssi before without problems. But new installation in a new theme i'm coding give me no results (using twentyeleven theme I have the same behaviour).
    My search.php is really basic right now, to be sure there is no call for query_posts() or WP_Query():

    	<h1>Search page</h1>
    if ( have_posts() ) : while ( have_posts() ) : the_post();
    	$excerpt = get_the_excerpt();
    		<h3><a href="<?php the_permalink();?>"><?php echo $title;?></a></h3>
    		<?php echo $excerpt;?>
    	<?php endwhile; ?>
    <?php else: ?>
    <p>No results</p>
    <?php endif;
    wp_footer(); ?>

    I obviously created the index. I just have two other plugin installed, WPML and MagicFields2, but deactivating them nothing change.
    If I uninstall relevanssi I get the wordpress standard search results.
    Any clue?


  2. bionicoz
    Posted 2 years ago #

    I answer by myself.
    Mikko I found a small bug for you ;)
    If you have no posts (I only use pages in my site) relevanssi give no results, even if there are several pages indexed.
    I just create a dummy post and everything started working.
    Hope this could be helpful.

  3. Mikko Saari
    Plugin Author

    Posted 2 years ago #

    That is a strange problem. I'll have to investigate this. Thanks for letting me know.

  4. Mikko Saari
    Plugin Author

    Posted 2 years ago #

    I'm not able to reproduce the error. I just created a site with no posts, just pages, and Relevanssi works just fine. What an odd problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic