• Resolved paulami92

    (@paulami92)


    For any word I search, it shows Nothing Found. This is my search.php file.

    <?php get_header(); ?>
    	<div class="content">
    		<?php //tie_breadcrumbs() ?> <?php '::::'.get_search_query().'::::' ?>
    
    		<div class="page-head">
    			<h2 class="page-title">
    				<?php if ( have_posts() ) : ?>
    				<?php printf( __( 'Search Results for: %s', 'tie' ), '<span>' . get_search_query() . '</span>' ); ?>
    				<?php else : ?>
    				<?php _e( 'Nothing Found', 'tie' ); ?>
    				<?php endif; ?>
    			</h2>
    			<div class="stripe-line"></div>
    		</div>
    
    		<?php if ( have_posts() ) : ?>
    			<?php get_template_part( 'loop', 'search' );	?>
    			<?php if ($wp_query->max_num_pages > 1) tie_pagenavi(); ?>
    		<?php else : ?>
    			<div id="post-0" class="post not-found post-listing">
    				<div class="entry">
    					<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'tie' ); ?></p>
    				</div>
    			</div>
    		<?php endif; ?>
    	</div>
    	<?php get_sidebar(); ?>
    <?php get_footer(); ?>

    https://www.ads-software.com/plugins/relevanssi/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    No problems with your search results template. It’s something else. Did you manage to build an index without problems? How many posts are in your index (Relevanssi tells you that on the settings page)?

    Thread Starter paulami92

    (@paulami92)

    Ya, I had some problem with indexing. It has been fixed now. Thank you ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Nothing Found for any search’ is closed to new replies.