Title: Search Function Problems
Last modified: August 30, 2016

---

# Search Function Problems

 *  [emshim](https://wordpress.org/support/users/emshim/)
 * (@emshim)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/search-function-problems-2/)
 * 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 &raquo;'); ?></p>
       						<p class="article-nav-prev"><?php next_posts_link('&laquo; 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 🙂

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

 *  Thread Starter [emshim](https://wordpress.org/support/users/emshim/)
 * (@emshim)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/search-function-problems-2/#post-6522220)
 * p.s. I understand some may say to speak to the plugin developer, but they’ve 
   stated there doesn’t seem to be a problem at their end, and due to the fact that
   there must be thousands of people using Customer Area and a standard Search at
   the same time, there must be something else going on! :S
 *  Thread Starter [emshim](https://wordpress.org/support/users/emshim/)
 * (@emshim)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/search-function-problems-2/#post-6522221)
 * In case it can help, my website is here – [http://www.videocentric.co.uk ](http://www.videocentric.co.uk/)–
   search in top right corner.

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

The topic ‘Search Function Problems’ is closed to new replies.

## Tags

 * [login](https://wordpress.org/support/topic-tag/login/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [emshim](https://wordpress.org/support/users/emshim/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/search-function-problems-2/#post-6522221)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
