Search Function Problems
-
Hi Everyone!
I’ve been stumped with this for a few weeks now and just cannot work out the problem. It’s driving me crazy! The issue is as follows:
When I use the search on my website, on submit, the user either gets directed to the login page (if not logged in) or directed to a white page, almost blank but with text stating “You must specify a post to edit”).
The problem occurs with use of any search function (Live Search, Relavanssi etc.) however does not occur if the Customer Area plugin is deactivated.
This seems to suggest that this is the Customer Area plugin, however the plugin developers have said that they have checked the search & plugin and there is no problem here.
The search.php I am using is as follows:
<?php get_header(); ?> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-9 col-md-9 col-lg-9 article-container-fix"> <div class="article-container"> <?php if (have_posts()) : ?> <div class="search-results-container"> <h4>Search results for: <?php echo get_search_query(); ?></h4> </div> <!-- end search-results --> <hr class="fancy-hr" /> <div class="searchresults"> <?php while(have_posts()) : the_post(); ?> <?php get_template_part('content', get_post_format()); ?> <?php endwhile; else : ?> <article class="no-posts"> <h1><?php _e('No results were found matching your specific criteria. Please check your spelling and spaces and try again!', 'adaptive-framework'); ?></h1> </article> <?php endif; ?> </div> <div class="article-nav clearfix"> <p class="article-nav-next"><?php previous_posts_link('More Results »'); ?></p> <p class="article-nav-prev"><?php next_posts_link('« More Results'); ?></p> </div> <!-- end clearfix --> </div> <!-- end article-container --> </div> <!-- end col-xs-12 col-sm-9 col-md-9 col-lg-9 --> <aside class="main-sidebar col-xs-12 col-sm-3 col-md-3 col-lg-3"> <?php get_sidebar('main-sidebar'); ?> </aside> <!-- end col-xs-12 col-sm-3 col-md-3 col-lg-3 --> </div> <!-- end row --> </div> <!-- end container --> <?php get_footer(); ?>And the searchform.php I am using is as follows:
<form method="get" class="search-form" action="<?php echo home_url( ); ?>"> <input type="text" value="search" name="s" id="s" onblur="if(this.value=='')this.value='search'" onfocus="if(this.value=='search')this.value=''" /> <input type="hidden" value="submit" /> </form>If anyone has any ideas, thoughts or assistance they can give me, i’d be hugely grateful. I really need both a working search function and a private customer area, and so I really hope this could be a simple fix. I’m struggling to know where to go or how to fix this and i’ve been reading through forums & help files for weeks to no avail.
Thank you again in advance for taking the time to read my messsage. I look forward to hearing from you 🙂
The topic ‘Search Function Problems’ is closed to new replies.