Title: class-search-plus.php
Last modified: August 21, 2016

---

# class-search-plus.php

 *  Resolved [moklet](https://wordpress.org/support/users/moklet/)
 * (@moklet)
 * [13 years ago](https://wordpress.org/support/topic/class-search-plusphp/)
 * In this file you have on line 84 the following
 * $query->set( ‘s’, ” );
 * This removes the functionality from wordpress get_search_query();
 * if i comment out this line it brings it back, any reason why this code is required
 * because with this code i get the following in my search
 * Search Results for: (nothing here)
 * if i comment it out i get
 * Search Results for: My Search Keyword
 * [http://wordpress.org/extend/plugins/gsearch-plus/](http://wordpress.org/extend/plugins/gsearch-plus/)

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

 *  Plugin Author [luistinygod](https://wordpress.org/support/users/luistinygod/)
 * (@luistinygod)
 * [13 years ago](https://wordpress.org/support/topic/class-search-plusphp/#post-3775474)
 * Line 84 is needed to bypass the default WordPress search query. If you comment
   out that you’re telling WordPress to continue the query using the search terms…
 * You check class-search-plus.php line 29 you’ll see `add_filter('get_search_query',
   array($this, 'gomo_sp_return_search_query'), 1);` . This is used to tell WordPress
   get_search_query() function what are the searched terms.
 * Following what I’m using on some of my themes search template and it is working
   correctly:
 * `<h1><?php echo get_search_query(); ?></h1>`
 * Please check again. If problem persists let me know.
 *  Thread Starter [moklet](https://wordpress.org/support/users/moklet/)
 * (@moklet)
 * [13 years ago](https://wordpress.org/support/topic/class-search-plusphp/#post-3775479)
 * Thanks for the quick response. It was an other search plugin causing the issue
   which i forgot to disable. It is working great now.
 *  Plugin Author [luistinygod](https://wordpress.org/support/users/luistinygod/)
 * (@luistinygod)
 * [13 years ago](https://wordpress.org/support/topic/class-search-plusphp/#post-3775493)
 * Cool!

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

The topic ‘class-search-plus.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gsearch-plus_c8b695.svg)
 * [gee Search Plus, improved WordPress search](https://wordpress.org/plugins/gsearch-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gsearch-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gsearch-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/gsearch-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gsearch-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gsearch-plus/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [luistinygod](https://wordpress.org/support/users/luistinygod/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/class-search-plusphp/#post-3775493)
 * Status: resolved