WordPress.org

Forums

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

  1. bionicoz
    Member
    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():

    <?php
    	wp_head();
     ?>
    	<h1>Search page</h1>
    <ul>
    <?php
    if ( have_posts() ) : while ( have_posts() ) : the_post();
    
    	$title=get_the_title();
    	$excerpt = get_the_excerpt();
    ?>
    	<li>
    		<h3><a href="<?php the_permalink();?>"><?php echo $title;?></a></h3>
    		<?php echo $excerpt;?>
    	</li>
    	<?php endwhile; ?>
    </ul>
    <?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?

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

  2. bionicoz
    Member
    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
    Member
    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
    Member
    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

  • Relevanssi - A Better Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic