• Resolved antepri

    (@antepri)


    Hello Just a Short question,
    i installed the plugin but get no output. In the back end i see that there is a large index but if i use the search from i get no output. Any Ideas how to solve?

    PS: the search on portfolio items in the backend is also not working somehow.

    search.php

    <?php
    
    global $themeple_config;
    $themeple_config['multi_entry_page'] = true;
    $themeple_config['current_sidebar'] = themeple_get_option('blog_sidebar_position');
    $spancontent = 12;
        if($themeple_config['current_sidebar'] == 'fullsize')
            $spancontent = 12;
        else
            $spancontent = 9;
    $themeple_config['current_view'] = 'blog';
    get_header();
               $id = themeple_get_option('blogpage');
            ?>
    
        <!-- Page Head -->
    
       <div class="header_page basic colored_bg" style=" background-color:#f7f7f7; -webkit-background-size: cover;-moz-background-size: cover;-o-background-size: cover;background-size: cover; color:#2f383d; ">
    
                <div class="container">
    
                            <h1><?php echo __('Search Results' , 'themeple'); ?></h1>
    
                </div>
    
        </div>
    
    <!-- End Page Head -->
     <?php $blog_bg_color = themeple_get_option('blog_bg_color');    ?>
    
    <section id="content" style="background: <?php echo esc_attr($blog_bg_color); ?>">
            <div class="container" id="blog">
                <div class="row">
        <?php if($themeple_config['current_sidebar'] == 'sidebar_left') get_sidebar() ?>
            <div class="span<?php echo esc_attr($spancontent) ?>">
    
        <?php
            if(have_posts()){
    
                if(( $themeple_config['current_sidebar'] == 'fullsize' && !isset($_COOKIE['themeple_blog'])) || (isset($_COOKIE['themeple_blog']) && $_COOKIE['themeple_blog'] == 'fullwidth' )){
                    get_template_part( 'template_inc/loop', 'blog-grid' );
                }else
                    get_template_part( 'template_inc/loop', 'index' );
    
            }else{
    
        ?>
            <h3 style="font-weight:normal;"><?php _e('Your search did not match any entries', 'themeple') ?></h3>
            <p></p>
            <p><?php _e('Suggestions', 'themeple') ?>:</p>
            <ul style="margin-left:40px">
                <li><?php _e('Make sure all words are spelled correctly', 'themeple') ?>.</li>
                <li><?php _e('Try different keywords', 'themeple') ?>.</li>
                <li><?php _e('Try more general keywords', 'themeple') ?>.</li>
            </ul>
        <?php } ?>
    
            </div>
    <?php
        wp_reset_postdata();    
    
        if($themeple_config['current_sidebar'] == 'sidebar_right') get_sidebar();
    ?>
    
                </div>
            </div>
    </section>
    <?php
        get_footer();
    
    ?>

    searchform.php

    <form action="<?php echo esc_url(home_url()) ?>" id="search-form">
                                <div class="input-append">
                                    <input type="text" size="16" placeholder="<?php _e('Search', 'themeple') ?>…" name="s" id="s"><button type="submit" class="more"><?php _e('Search', 'themeple') ?></button>
                                	<a href="#" class="close_"><i class="moon-close"></i></a>
                                </div>
    </form>

    https://wordpress.org/plugins/relevanssi/

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

    (@msaari)

    There doesn’t seem to be a problem with your search results template.

    If you add this to your search results page, what do you get when you do a search?

    <?php global $wp_query; var_dump($wp_query->query_vars); var_dump($wp_query->found_posts); ?>

    Thread Starter antepri

    (@antepri)

    if i enter this code nothing happens.

    But a friend of mine had a look and found that in the functions.php of the Theme was a mistake there were the custom post types missing so the search could´t find anything so this Problem had nothing to do whit your Plugin!

    Thanks anyways for the quick support.

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

The topic ‘no results’ is closed to new replies.