• Resolved garyschmidt

    (@garyschmidt)


    My search.php looks like this:

    <?php
    /**
    * The template for displaying Search Results pages.
    *
    * @package WordPress
    * @subpackage OneSocial Theme
    * @since OneSocial Theme 1.0.0
    */
    get_header();
    ?>

    <div id=”primary” class=”site-content”>

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

    <div id=”content” role=”main” class=”search-content-wrap”>

    <section class=”search-content”>

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

    <div class=”search-content-inner”>

    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part( ‘template-parts/content’, get_post_format() ); ?>
    <?php endwhile; ?>

    </div>

    <div class=”pagination-below”>
    <?php buddyboss_pagination(); ?>
    </div>

    <?php else : ?>

    <?php get_template_part( ‘template-parts/content’, ‘none’ ); ?>

    <?php endif; ?>

    </section>

    <?php
    if ( is_active_sidebar( ‘search’ ) ) {
    get_sidebar();
    }
    ?>

    </div>

    </div>

    <?php

    get_footer();

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

    (@msaari)

    You’re using BuddyPress, right? Relevanssi doesn’t work with BuddyPress.

    Thread Starter garyschmidt

    (@garyschmidt)

    Nope. I’m not using buddypress.

    My plugin list:
    Ad Inserter
    Akismet
    All in one WP security
    Autoptimize
    Go Pricing
    Redirection
    Shortcodes Ultimate
    Social Pug
    Thrive Visual Editor
    UpdraftPlus – Backup/Restore
    W3 Total Cache
    WP Smush
    WP-Optimize
    WPFront Scroll Top
    Yoast SEO

    Plugin Author Mikko Saari

    (@msaari)

    Do you have a complete index? Can I see your site?

    Thread Starter garyschmidt

    (@garyschmidt)

    I’m really sorry for the delay. I didn’t get any email notification of your reply.

    http://www.batsforall.com/

    This is my site.

    Thread Starter garyschmidt

    (@garyschmidt)

    Yes, I do have complete index.

    Plugin Author Mikko Saari

    (@msaari)

    That search results template you posted is from OneSocial theme. But aren’t you using Authority Azon? Can you show me the search results template from that theme?

    Thread Starter garyschmidt

    (@garyschmidt)

    I’ve copied it direct from my theme editor. I think there is something wrong as I’m also seeing that here theme name is OneSocial theme. I’ll let you know. I didn’t see it earlier.

    Thread Starter garyschmidt

    (@garyschmidt)

    Now my search.php looks like this

    <?php get_header(); ?>

    <div class=”site-content wrap”>
    <h1 class=”post-title”><?php aazon_get_string( ‘str_31’ ); ?></h1>
    <main class=”content” id=”primary” role=”main”>
    <?php if( have_posts()): while( have_posts()): the_post();
    get_template_part( ‘content’);
    endwhile;
    aazon_blog_paging();
    wp_reset_postdata(); ?>

    <?php else : ?>
    <?php get_template_part( ‘content’, ‘none’ ); ?>
    <?php endif; ?>
    </main><!– #primary –>
    <?php get_sidebar(); ?>
    <div class=”clearfix”></div>
    </div>

    <?php get_footer(); ?>

    Plugin Author Mikko Saari

    (@msaari)

    Nothing obviously wrong there, either. Does the search work if you switch momentarily to one of the default Twenty themes?

    Thread Starter garyschmidt

    (@garyschmidt)

    Problem was with header.php. Solved it. Thanks so much for your cooperation.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Search Bar showing “No result found”’ is closed to new replies.