• Resolved Li-An

    (@li-an)


    Hello, I installed Relevanssi, created the index and no result is showing. If I comment query in search.php, nothing is showing. Here is the content of search.php

    <?php
    /**
     * The Search page of Mynote theme.
     *
     * @author Terry Lin
     * @link https://terryl.in/
     *
     * @package WordPress
     * @subpackage Mynote
     * @since 1.0.0
     * @version 1.0.7.0
     */
    
    get_header();
    
    ?>
    
    <div class="category-header">
    	<div class="container">
    		<h1 id="post-title" class="search" itemprop="headline">
    			<?php echo get_search_query(); ?>
    			<span class="badge badge-secondary"><?php echo $wp_query->found_posts; ?></span>	
    		</h1>
    		<div class="term-desctiotion"><?php echo sprintf( __( '%s Search Results for %s', 'mynote' ), $wp_query->found_posts, get_search_query() ); ?></div>
    	</div>
    </div>
    <main role="main">
    	<div class="container">
    		<?php get_template_part( 'loop' ); ?>
    		<?php get_template_part( 'pagination' ); ?>
    	</div>
    </main>
    
    <?php get_footer(); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Does the Relevanssi admin search (Dashboard > Admin search) find any results?

    Thread Starter Li-An

    (@li-an)

    No. Zero find. I had an old Relevanssi Premium working before installing Relevanssi. Maybe the old index is interfering with the new one??

    Thread Starter Li-An

    (@li-an)

    I updated Relevanssi and clicked on “Index non indexed publications” and it woks now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘0 result’ is closed to new replies.