• Resolved capdiy

    (@capdiy)


    <?php

    $preset = Photocrati_Style_Manager::get_active_preset();
    extract($preset->to_array());
    ?>

    <?php get_header(); ?>

    <div id=”container”>

    <?php
    if (Photocrati_Style_Manager::is_sidebar_enabled() && Photocrati_Style_Manager::get_active_preset()->sidebar_alignment_responsive == ‘top’) {
    get_sidebar();
    }
    ?>

    <div id=”content-sm” class=”<?php echo Photocrati_Style_Manager::is_sidebar_enabled() ? ‘photocrati-sidebar-enabled’ : null; ?>”><!– Important!! If you remove the sidebar change the ID of this DIV to content –>

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

    <h1 class=”page-title”><?php _e( ‘Search Results for: ‘, ‘photocrati-framework’ ); ?><span><?php the_search_query(); ?></span></h1>

    <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    <div id=”nav-above” class=”navigation”>
    <div class=”nav-previous”><?php next_posts_link(__( ‘<span class=”meta-nav”>«</span> Older posts’, ‘photocrati-framework’ )) ?></div>
    <div class=”nav-next”><?php previous_posts_link(__( ‘Newer posts <span class=”meta-nav”>»</span>’, ‘photocrati-framework’ )) ?></div>
    </div><!– #nav-above –>
    <?php } ?>

    <?php

    $curr_post_index = 0;

    while (have_posts()) {
    the_post();

    photocrati_theme_loop_entry(‘search’, get_defined_vars());

    $curr_post_index++;
    }

    ?>

    <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    <div id=”nav-below” class=”navigation”>
    <div class=”nav-previous”><?php next_posts_link(__( ‘<span class=”meta-nav”>«</span> Older posts’, ‘photocrati-framework’ )) ?></div>
    <div class=”nav-next”><?php previous_posts_link(__( ‘Newer posts <span class=”meta-nav”>»</span>’, ‘photocrati-framework’ )) ?></div>
    </div><!– #nav-below –>
    <?php } ?>

    <?php else : ?>

    <div id=”post-0″ class=”post no-results not-found”>
    <h2 class=”entry-title”><?php _e( ‘Nothing Found’, ‘photocrati-framework’ ) ?></h2>
    <div class=”entry-content”>
    <p><?php _e( ‘Sorry, but nothing matched your search criteria. Please try again with some different keywords.’, ‘photocrati-framework’ ); ?></p>
    <?php get_search_form(); ?>

    Help would be greatly appreciated, Thank You

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

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

    (@msaari)

    Doesn’t seem to be anything wrong with the your search results template. Do you have a complete index? Does your theme perhaps have a setting that’s restricting the search to a particular post type? Are you using Yoast Local SEO?

    Thread Starter capdiy

    (@capdiy)

    Thank you for that. No, I am not using Yoast but sqirrly, is that a problem?
    I re-indexed and that has improved things dramatically.
    Thank you for a great plugin!

    Plugin Author Mikko Saari

    (@msaari)

    Not that I know. Yoast SEO isn’t a problem either, but Yoast Local SEO in particular is.

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

The topic ‘relevanssi not finding much’ is closed to new replies.