• Resolved hortons-art

    (@hortons-art)


    I’m using the Search Everything plugin to search all custom fields and Toolset’s Views to display the results. There’s an option on the Views plugin to update the View results every time an input changes, this is done via Ajax, but it’s not working when I search for a custom field. I’ve contacted the Toolset Support forum and they wanted me to ask if Search Everything supports Ajax, as they think this is what is causing the problem.

    https://wordpress.org/plugins/search-everything/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey, thanks for reaching out & I would love to help you, but in order to do so, we are going to need a bit more information — any chance you could send us the link to the blog in question? We’d love to test it out ourselves, if possible.

    We’re eager to help you out, so any additional information is more than appreciated! Looking forward to your reply!

    Take care & enjoy your weekend!

    Best,
    Silvo

    Thread Starter hortons-art

    (@hortons-art)

    Absolutely! I’ve setup a demo site here: DEMO

    I’ve setup 2 pages on the site.

    One called Primary Locations, which does not use the ajax setting; instead the user must hit the submit button to reload the page and have the results rendered. This works, but isn’t the preferred method for my live site.

    and

    Another page called Secondary Locations, which has the ajax setting enabled, but searching for anything other than the post title will result in “No items found”.

    Both pages are using the same custom post type and each post type’s content is produced entirely on the custom fields, except for the title of course. The only difference between the pages is that the ajax setting is enabled on Secondary Locations.

    If you need more information/admin login please let me know.

    Thanks in advance for your help!

    Hey, sorry for not responding any sooner, but we think we might have a solution for you, although we’re not exactly sure it’ll work.

    The thing is, our plugin has two features:

    1.) Search Everything, which enhances your default WordPress’s search function, and
    2.) Research Everything, which loads up in your compose-new-post page and offers you suggestions to include in your blog posts as you type (and works in AJAX).

    But we think we might help you out in your case, although we’re not 100% sure if this tweak will work. We are fairly certain this won’t break anything at all (if anything, then the features of our plugin), but it just might work. And it’s easily retractable, if it by any chance doesn’t.

    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;
    }

    Make sure you saved that code to a safe place before clicking on the “Update File” button, but when you did, do let us know what happened / if that helped. We’re looking forward to your reply!

    Take care & have a nice day!

    Best,
    Silvo

    Thread Starter hortons-art

    (@hortons-art)

    This worked perfectly! Thanks for all of the help!!!

    Ha! Glad to hear that, to be honest!

    You are also more than welcome to leave a review of our plugin, if you like its functionality so far on our reviews page (if you find the time). Here’s the link: http://wordpress.org/support/view/plugin-reviews/search-everything

    And do let me know if you have any more questions in the future or if there’s anything else that we can help you with, since we’ll gladly do it!

    Take care & have a nice rest of the day!

    Best,
    Silvo

    Hi Silvo!

    I’m using your great tool for expanded searching, and this was the exact solution I needed to enable Ajax-based searches from the front-end.

    Thanks!

    Thread Starter hortons-art

    (@hortons-art)

    The only problem with this is it interferes with searching on the back end. For example if you were creating an internal link on a post, and instead of typing the url you searched using the “Or link to existing content” section, you get no results. At least that’s what happening for me.

    madladuk

    (@madladuk)

    I am using the Kleo theme by seventhqueen that has an ajax search option. If I remove those lines it then stops any results being shown. However if I search for an item using the normal search it finds the results but using the ajax version I get no results found.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Does Search Everything support Ajax?’ is closed to new replies.