• I just installed and activated Relevanssi. I have done the indexing, but whenever I try to look something up, the search results are shown as if I hadn’t installed Relevanssi at all.

    Here’s my search.php code

    <?php get_header(); ?>
    
    			<?php if ( have_posts() ) : ?>
    
    				<header class="page-header">
    					<h1><?php printf( __( 'Search Results for: %s', 'cloud9' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
    				</header>
    
    				
    
    				<?php /* Start the Loop */ ?>
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<div class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
    <h1><small><span class="glyphicon glyphicon-time"></span> <?php the_time('M. d, Y') ?></small></h1>
     <div class="site-content">
    <?php the_content(__('Continue reading &raquo;')); ?>
    <?php wp_link_pages(); ?>
    </div>    
    <hr>
    
    				<?php endwhile; ?>
    
    			<?php else : ?>
    
    				<br /><br />
    						<h1><?php _e( 'Nothing Found', 'cloud9' ); ?></h1>
    					
    
    					
    						<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'cloud9' ); ?></p>
    						<?php get_search_form(); ?>
    
    <br /><br /><br /><br /><br /><br /><br />
    				
    
    			<?php endif; ?>
    
    <?php get_footer(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Do the results change if you activate or deactivate Relevanssi?

    If the problem is just the excerpts, then fixing it is easy. Just change this:

    <?php the_content(__('Continue reading &raquo;')); ?>

    to

    <?php the_excerpt(); ?>

    Hi Guys,

    I have the same problem and its obviously quite a noob question. So I installed and activated the plugin networkwide for my multisite wordpress setup.

    I did the indexing and changed the setting to my liking. Never the less the search results show exactly how they did before. Especially I am confused as the searchterm does not show up highlighted in the results as mentioned although I thing I did the setup right (selecting colours for highlight etc.)

    Also as I am using the free version of the plugin I read there would be an Advert or reference shown in the results page. I also do not have this reference, which makes me believe I did not install it correctly.

    The pastebin url for my search.php is:

    https://pastebin.com/5WhjPkeG

    Please help if you know the problem and how to fix it. Thanks a lot for your support,
    Best, Max

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not working’ is closed to new replies.