search doesn't work
-
Hi! I’m brand new to www.remarpro.com and someone recommended this plugin to me. Ive installed it and activated it, but now the search function doesn’t work at all on my site. I followed the instructions here https://www.relevanssi.com/knowledge-base/query_posts/ but I can’t see anything that says query_posts(). Can anyone help please?
FYI – my theme is Oxygen
<?php
/**
* The template for displaying Search Results pages.
*
* @package Oxygen
* @since Oxygen 0.2.2
*/get_header(); ?>
<section id=”primary” class=”site-content”>
<div id=”content” role=”main”><?php if ( have_posts() ) : ?>
<header class=”page-header”>
<h1 class=”page-title”><?php printf( __( ‘Search Results for: %s’, ‘oxygen’ ), ‘<span>’ . get_search_query() . ‘</span>’ ); ?></h1>
</header><?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?><?php get_template_part( ‘content’, ‘search’ ); ?>
<?php endwhile; ?>
<?php oxygen_content_nav( ‘nav-below’ ); ?>
<?php else : ?>
<?php get_template_part( ‘no-results’, ‘search’ ); ?>
<?php endif; ?>
</div><!– #content –>
</section><!– #primary .site-content –><?php get_sidebar( ‘primary’ ); ?>
<?php get_sidebar( ‘secondary’ ); ?>
<?php get_footer(); ?>
- The topic ‘search doesn't work’ is closed to new replies.