WordPress.org

Support

Support » Plugins and Hacks » [Resolved] No results

[Resolved] No results

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Plugin Author Mikko Saari

    @msaari

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

    Plugin Author Mikko Saari

    @msaari

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] No results’ is closed to new replies.