• hey,

    im totally new in WordPress. I want to use this nice Plugin by using the wolf-starter theme. This is my search.php

    <?php
    /**
    * The template for displaying Search Results pages.
    *
    * @package wolf
    */

    get_header(); ?>

    <section id=”primary”>
    <div id=”content” role=”main”>

    <?php if ( have_posts() ) : ?>

    <header class=”page-header”>
    <h1 class=”page-title”><?php printf( __( ‘Search Results for: %s’, ‘wolf’ ), ‘<span>’ . get_search_query() . ‘</span>’ ); ?></h1>

    </header><!– .page-header –>

    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>

    <?php do_action(‘wolf_before_search-results’); ?>

    <?php get_template_part( ‘content’, ‘search’ ); ?>

    <?php do_action(‘wolf_after_search-results’); ?>

    <?php endwhile; ?>

    <?php if (function_exists(‘relevanssi_the_excerpt’)) { relevanssi_the_excerpt(); }; ?>

    <?php else : ?>

    <?php get_template_part( ‘no-results’, ‘search’ ); ?>

    <?php endif; ?>

    </div><!– #content –>
    </section><!– #primary –>

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    what do i have to do, to get this plugin running?

    Thank you for your help

    https://ww.wp.xz.cn/plugins/relevanssi/

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

    (@msaari)

    How exactly is the plugin not working? There’s nothing wrong with your serach results template (except that the relevanssi_the_excerpt() call is in the wrong place, it should be next to the get_template_part(‘content’, ‘search’);, and even more accurately inside that.

    Thread Starter jopsen

    (@jopsen)

    When i try to search something on my blog it say there are no results!
    Ok thank you can u do it for me please? here is my original search.php. I would appreciate that so much.

    <?php
    /**
     * The template for displaying Search Results pages.
     *
     * @package wolf
     */
    
    get_header(); ?>
    
    	<section id="primary">
    			<div id="content" role="main">
    
    		<?php if ( have_posts() ) : ?>
    
    			<header class="page-header">
    				<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'wolf' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
    			</header><!-- .page-header -->
    
    			<?php /* Start the Loop */ ?>
    			<?php while ( have_posts() ) : the_post(); ?>
    
    				<?php do_action('wolf_before_search-results'); ?>
    
    				<?php get_template_part( 'content', 'search' ); ?>
    
    				<?php do_action('wolf_after_search-results'); ?>
    
    			<?php endwhile; ?>
    
    			<?php wolf_content_nav( 'nav-below' ); ?>
    
    		<?php else : ?>
    
    			<?php get_template_part( 'no-results', 'search' ); ?>
    
    		<?php endif; ?>
    
    		</div><!-- #content -->
    	</section><!-- #primary -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    thank you
    regeards

    Plugin Author Mikko Saari

    (@msaari)

    Did you build the index succesfully? Can I see your site?

    Thread Starter jopsen

    (@jopsen)

    I dont know, what do you mean. no sorry its local.

    Thread Starter jopsen

    (@jopsen)

    ah ok i built the index

    Plugin Author Mikko Saari

    (@msaari)

    Does it work now?

    Thread Starter jopsen

    (@jopsen)

    no sorry
    i have no idea

    Thread Starter jopsen

    (@jopsen)

    the index is there. Can u please construct my search.php`?

    Plugin Author Mikko Saari

    (@msaari)

    The search.php you have is fine, it doesn’t need any modifications for Relevanssi. The problem is somewhere else, and with the information I have, I don’t know where.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Plugin isnt working’ is closed to new replies.