Title: Search from functions.php
Last modified: August 22, 2016

---

# Search from functions.php

 *  Resolved [cs1h](https://wordpress.org/support/users/cs1h/)
 * (@cs1h)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/search-from-functionsphp/)
 * Hi,
 * Great plug-in. It’s very useful and easy to use.
 * I have the search working on the search page however I am using ajax for pagination.
   As part of this I am running a search in the functions.php using the query_posts()
   function.
 * However this does not then run the extra searches that your plugin provides. 
   Is there a way around this?
 * Thank you in advance for any help you can provide.
 * Cheers,
    cs1h
 * [https://wordpress.org/plugins/search-everything/](https://wordpress.org/plugins/search-everything/)

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

 *  [PetraP](https://wordpress.org/support/users/petrap/)
 * (@petrap)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/search-from-functionsphp/#post-5181616)
 * Hey,
 * thanks for reaching out! We’re not 100% sure if this will work but would you 
   please be so kind and go to your WordPress’s Dashboard, under the tab ‘Plugins’-‘
   Editor’, select our plugin to edit (in the top right corner), select the “search-
   everything/search-everything.php” file, then find & delete the following lines
   in your editor window:
 *     ```
       // Disable Search-Everything, because posts_join is not working properly in WordPress-backend's Ajax functions
       //(for example in wp_link_query from compose screen (article search when inserting links))
       if (basename( $_SERVER["SCRIPT_NAME"] ) == "admin-ajax.php") {
       return true;
       }
       ```
   
 * Click on the “Update File” button, and do let us know how it goes. We’re looking
   forward to your reply!
 * Take care & have a nice day,
    Petra
 *  Thread Starter [cs1h](https://wordpress.org/support/users/cs1h/)
 * (@cs1h)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/search-from-functionsphp/#post-5181639)
 * Hi Petra,
 * Thanks for the quick response.
 * That seems to have done the job. I will let you know if I find any issues.
 * Also thanks again for the great plug-in.
 * Cheers,
    Cs1h
 *  [PetraP](https://wordpress.org/support/users/petrap/)
 * (@petrap)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/search-from-functionsphp/#post-5181643)
 * Glad to hear it worked!
 * All the best,
    Petra

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

The topic ‘Search from functions.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/search-everything_242529.svg)
 * [Search Everything](https://wordpress.org/plugins/search-everything/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/search-everything/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/search-everything/)
 * [Active Topics](https://wordpress.org/support/plugin/search-everything/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-everything/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-everything/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [PetraP](https://wordpress.org/support/users/petrap/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/search-from-functionsphp/#post-5181643)
 * Status: resolved