• Resolved cs1h

    (@cs1h)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    (@cs1h)

    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

    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.