relevanssi not finding much
-
<?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
The topic ‘relevanssi not finding much’ is closed to new replies.