An ajax live search that uses the same theme as facebook search, it uses ajax and jQuery to get results from php.
BUY NOW

123 Comments

  • Hi i am trying to install ajaxy on my wordpress website, but i couldnt see any information about ho to insert it into template. If i change the searchforma.php file, then there appears a warning on my template. can yopu help me please? thanks for this useful plugin.

    • admin

      Alper,

      What warning do u get?, you have to rename searchform.php to searchforma.php or else the theme search form will be used instead, the plugin hacks wordpress default search form, u can use to get the form, or else most of the time it only needs activation

  • Igor

    Hi,
    Successfully installed your search form and I love it! Thank you so much. However, I’d like to change the colour of highlights, so to say to get rid of fb feel to it. Any ideas?

    Greatly Appreciated!

  • Theo

    Hello, I installed this search. It`s great but there is one problem. I don`t see the text when I type in , and the flickering dash either.

  • Theo

    It worked. Thanks. One more thing though, I`m not sure if it searches by tags. It searches by the text I have inside the post. Is there a way that it can read the tags too?

    • admin

      currently it searches categories only, i will add that in v2

      if u really need it, u have to edit sf.php on line 220 and replace this $wpdb->term_taxonomy.taxonomy=’category’ with ($wpdb->term_taxonomy.taxonomy=’category’ || $wpdb->term_taxonomy.taxonomy=’post_tag’)

      this will search both categories and post_tags

          • Theo

            The whole line 220 is : $results = $wpdb->get_results($wpdb->prepare(“select $wpdb->terms.term_id from $wpdb->terms, $wpdb->term_taxonomy where name like ‘%%%s%%’ and ($wpdb->term_taxonomy.taxonomy=’category’ || $wpdb->term_taxonomy.taxonomy=’post_tag’) and $wpdb->term_taxonomy.term_id = $wpdb->terms.term_id limit 0, “.$setting->limit, $name));

            This was with parenthesis.

            Now this is without the parenthesis (I tried both) and none worked. It still searches only by the name. (not by tags)

            $results = $wpdb->get_results($wpdb->prepare(“select $wpdb->terms.term_id from $wpdb->terms, $wpdb->term_taxonomy where name like ‘%%%s%%’ and $wpdb->term_taxonomy.taxonomy=’category’ || $wpdb->term_taxonomy.taxonomy=’post_tag’ and $wpdb->term_taxonomy.term_id = $wpdb->terms.term_id limit 0, “.$setting->limit, $name));

        • admin

          ah sorry, my fault it should be “or” instead of “||”

          so the line becomes

          $results = $wpdb->get_results($wpdb->prepare(“select $wpdb->terms.term_id from $wpdb->terms, $wpdb->term_taxonomy where name like ‘%%%s%%’ and ($wpdb->term_taxonomy.taxonomy=’category’ or $wpdb->term_taxonomy.taxonomy=’post_tag’) and $wpdb->term_taxonomy.term_id = $wpdb->terms.term_id limit 0, “.$setting->limit, $name));

          • Theo

            This code if I paste it it gives me an error on line 220. It won`t work at all. So instead, I changed the || to “or” . It eliminated that error but it still won`t still search by tags. It`s the same.

          • admin

            i have uploaded a new version with support of searching post tags and custom taxonomies, u can update your plugin to version 1.0.4

            cheers, don’t forget to donate :)

  • Theo

    Great! It works now, but last thing, it shows only words (for tags) , is it possible by any chance to show the thumbnail of the post that has that tag in it?

    Big thanks!

    • Theo

      For example, right now I have 5 different posts (with different images) but having the same tag, and if I type in that tag , it shows 5 tags with the same name but no image.. and it`s confusing. :) Thanks!

      • admin

        i removed the same post_tag appearance, update your plugin for version 1.0.5.

        currently it is not possible to show a thumbnail for post tags and even if it is a feature, you will get a large performance penalty on this kind of selection, because i will have to loop through all the posts inside this tag, get the first featured image and return it

        if i suppose u have 10 post in a tag and there are 3 matched tags, the estimated execution time will exceed 30 sec before returning the result, which will make the user click somewhere else before looking at the search

        this plugin major step was performance

        cheers

  • Tony

    Hi!

    I am currently trying your plugin Ajaxy Search for one of my sites.

    I am in the need of tweaking the plugin a bit to allow including meta_values in the search. (not as a separate post type)

    When someone search for “alive” i want them to find post with “alive” in the post_title or two meta values for this post.

    I have made some adjustments in the file sf.php making it work with post_title and a meta_value field se below,

    $results = $wpdb->get_results( $wpdb->prepare(“select $wpdb->posts.ID from $wpdb->posts INNER JOIN $wpdb->postmeta m1 ON ($wpdb->posts.ID = m1.post_id) where ((post_title like ‘%%%s%%’) “.($checking == 1 ? “or (meta_key = ‘my_meta_value’ and meta_value like ‘%%%s%%’))”:”)”).” AND post_status=’publish’ and post_type='”.$post_type.”‘ $excludes $order_results GROUP BY $wpdb->posts.ID limit 0,”.$setting->limit, ($checking == 1 ? array($name, $name):$name)));

    But when i add another meta_value to the code or try to alter AND OR in the SQL everything breaks. I have come to the conclusion that when using ‘%%%s%%’ more than two times in the SQL it breaks.

    See here what i am attempting to do,

    $results = $wpdb->get_results( $wpdb->prepare(“select $wpdb->posts.ID from $wpdb->posts INNER JOIN $wpdb->postmeta m1 ON ($wpdb->posts.ID = m1.post_id) where ((post_title like ‘%%%s%%’) or (meta_key = ‘my_meta_value’ and meta_value like ‘%%%s%%’) “.($checking == 1 ? “or (meta_key = ‘my_meta_value’ and meta_value like ‘%%%s%%’))”:”)”).” AND post_status=’publish’ and post_type='”.$post_type.”‘ $excludes $order_results GROUP BY $wpdb->posts.ID limit 0,”.$setting->limit, ($checking == 1 ? array($name, $name):$name)));

    I would like some guidance on how to add two meta_values in the search and possibly as a last add-on the ability to also search post_content if that is checked in admin (i have now removed it and replaced with my quirky code).

    Let me know if this is possible or/and if you can help us out with this.

    I am willing to pay you for your services, you can use up to 30$ of consultant fee so you can test code before getting back to me.

    Payment preferable using paypal.

    Thanks in advance

    /Tony

  • chicks0315

    When I active the plugin in google chrome browser the right scroll side is full black but in internet explorer browser is ok. But it is crazy bacause if I take a screenshot the scroll side is normal in google chrome and internet explorer.

  • Hello. Thanks for the great Plugin. I have a few questions. Hope you can help me.

    – Is it possible to delete the Text “Suche nach” over the Searchfield?
    – Is it possible to change the width of the Resultbox/Searchbox?

    Thanks a lot.

    • Sorry. I have found the Options. But i miss one Option to set.

      When i visit over http://www.wuepics.de my blog, the old Searchformbox is visible.

      Then, when i click on a Post or something, your Searchformbox is activ.

      How can i change this?

      Thanks a lot.

  • Jo

    Greetings,

    First, I love your plugin, i think it’s the best wordpress plugin for search. But i have a problem that i need to ask about.

    How do i include site members in the search, I don’t see any template for that, how can i make members appear in the search when i type a member’s name?

    Thanks a lot.

  • HI there,

    First of all i love this plugin but i seem to be having an issue on my new template. It is working as a normal search bar, even when it is put in the sidebar instead of the way it normally does, showing the results as you type.

    This is my test site (http://www.strang.za.net) till everything is working 100% then i will transfer.

    Thank you in advance.
    Dylan

    • admin

      this is happening to most users, the fact the jQuery is included several times in the same page and with different versions is causing this conflict, please enable it so i can tell the issue, don’t forget to attach your paypal donation ID

  • Ivan

    Hi, great plugin!
    I’m testing it on my site, and so far it works great, but I’d like to know if it’s possible to chain searches like: category+tags. What I need is to allow users to search for categories and tags combined at the same time.

    Thanks

  • John

    I posted this question on the WP plugin page, and will do so here as well…

    Is there a way to attach an invisible tag to a page or post, so if the text of the tag is searched for that page or post will come up in the results..?

    Thanks for your efforts.

  • Can you help me ? :)
    how about if i’m using custom field like pods, what tags for the template
    Ordinary wp field:
    Tags: {id}, {post_title}, {post_author}, {post_date}, {post_date_formatted}, {post_content}, {post_excerpt}, {post_image}, {post_image_html}, {post_link}

    what if i’m using custom field?

  • expo

    hi i want to integrate Ajaxy Live Search on the ubermenu search box. how can i do it ? and the ubermenu header is in fixed position so i like the Ajaxy Live Search to be the same position . help me please .

  • Hello,
    I need to set the ajaxy live search to start working after 3rd character was entered and not from the 1st one.
    How can I do that ?
    Thanks, it’s a wonderful plugin !!

    • admin

      that is not possible, however you can delay the results by using the delay settings in the backend, which have same effect as you need

      • can this be done by changing the code somehow ? I can code fairly well and will handle if you point me in the right direction

        Also, I’m getting a wired js error on the site: TypeError: offset is undefined

        …s.leftOffset, bottom: offset.top + jQuery(elem).innerHeight() + options.topOffs…

        sf.js (line 221)

        This is the site: http://www.new-medic.org/

        Thanks

  • matczar

    Hi,
    there is error in sf.php:547:

    $post->post_content = $this->get_text_words(get_the_content($post->ID) ,(int)$this->get_excerpt_count());

    Post ID is wrong argument for get_the_content().
    It shoud be somtething like:

    $post->post_content = $this->get_text_words(apply_filters('the_content', $post->post_content) ,(int)$this->get_excerpt_count());

  • Markus

    Hello! Great search – thank you! :) One question: I tried to have the search result box wider (600px) but it went out of the browser on the right side. How can I do this? And is there a way to have your results on a own search results page – not just in the results box while typing in? That would be really great!
    Thanks a lot,
    Markus

  • Sally

    Dear ajaxy,

    I install your plugin and i found it great, the only thing is that when i open the site in firefox, internet explorer and crome, ( it just work in safary )and i want to search for something it does not show the live preview…,

    Can you give me a hand??

  • We upgraded to 3.0 this morning and there’s text inplace of the box… actually the box is below the error message.

    Message below:

    Warning: Missing argument 1 for ajaxy_search_form(), called in /home/fishncan/public_html/wp-content/plugins/ajaxy-search-form/widgets/search.php on line 29 and defined in /home/fishncan/public_html/wp-content/plugins/ajaxy-search-form/sf.php on line 886

    … we’ve disabled the plugin for now. Thanks if you can help. :)

  • sally

    hi!, unfortunately i wanted to open the website so you can checked, but since this morning i made the update of the ajaxy live search, now when i activate the plugin all the widget area is frozen and i cannot put or take any widget…

    and when i deactivate the plugin the widget area is again active, i don’t know what to do…

  • sally ruchman

    HI! I have a little problem, i adapt with css the style of my search box and it looks perfect, the only problem i have is, the box is way more big in the mobile version, i put the width 100% that it can be taken, but still doesn’t work…

    any idea??

    thanks

  • Hi there!

    Thanks for this amazing plugin, works fantastic. There’s just one thing I’d like to change but I don’t know where to find it: change the search result’s header language (like ‘category’). Does it get it out of the theme or something like that (because I still need to translate that).

    Thanks in advance!

    Alex

  • sally

    HI!, unfortunately my website is not open yet, but i wanted to ask the following, i add a code css to style my box, that it looks the same as my other box for the contact us and the newsletter, and it work perfectly i add as width95% so al the box have the same width and it also work!, the problem is when i open the page in the ipad or in the phone its looks longer than in the desktop version.., what can i add to my code that the width would be the same in desktop and in the mobile version?

  • Sarah

    Hello,

    I put this plugin on my sites and it works great.

    Only thing is, I put it on another site with lots of articles but it’s not recognizing any of my them.

    I would take a screenshot and show you what I see but there no place to upload an attachment.

    It pretty much looks like this:

    After the “Edit Posts template & Settings” header on the dashboard, the is no text area – only the sidebar showing where to save your settings. Under the “exclude post”, absolutely nothing shows.

    — What could be a possible reason why this is happening and how can I solve it?

  • Sarah

    Hello,

    I am using this plugin on 4 sites of mine and they work great. However, when I put the plugin on another site of mine that has thousands of posts, it doesn’t recognize any of them

    I would take a screenshot and show you what I see but there no place to upload an attachment.

    It pretty much looks like this:

    After the “Edit Posts template & Settings” header on the dashboard, there is no text area – only the sidebar showing where to save your settings. Under the “exclude post”, absolutely nothing shows.

    — What could be a possible reason why this is happening and how can I solve it?

  • sally

    HI!, unfortunately my website is not open yet, but i wanted to ask the following, i add a code css to style my box, that it looks the same as my other box for the contact us and the newsletter, and it work perfectly i add as width95% so al the box have the same width and it also work!, the problem is when i open the page in the ipad or in the phone its looks longer than in the desktop version.., what can i add to my code that the width would be the same in desktop and in the mobile version?

    i receive this answer but i did not work…

    mobile css have a media query to control it behaviour

    ex:

    @media only screen and (min-width : 960px) {

    }

    the above code means (all screen with minimum width of 960px)

    @media only screen and (max-width : 1000px)

    the above code works with ipad2 and lower mobile, if you are targetting ipad3 or mini, the code changes according to the screen size

    is there another possibility?

    thanks

  • admin

    Before i see the website, i can’t help you much, each website have its own styles, put your website online as private and use wordpress maintenance plugin and send me access so i can check what you are trying to do exactly.

  • sally

    hi! thanks for your answer!, i would love too, but when i activate the ajaxy live search 3.0.3 the hole widget area is frozen and i cannot add the ajaxy search to the sidebar…

    what can i do??

  • dear support,

    after re-installing everything i could put the search field on the right side bar…. if you open the website in the desktop and in the ipad, iphone etc you will see the different length of the search box…, in the module site is way to long in compare to the desktop version, i would like is the same length and i don’t know how to do it.. i try the code:

    @media only screen and (min-width : 960px) {

    }

    the above code means (all screen with minimum width of 960px)

    @media only screen and (max-width : 1000px)

    but i did not work…

    i also try to put the length in % but also did not work…

  • Dear support,

    i just update the version, and it did not fix the problem…, i try to change the value also to % and is also did not work…

    please can you check it again?

    thanks

  • My Website this plugin not work Undefined Function Error

    websiteurl : http://hdfilmizle.be

    error line :

    $(sf_input).ajaxyLiveSearch({“expand”:”0″,”searchUrl”:”http:\/\/hdfilmizle.be\/?s=%s”,”text”:”Arama”,”delay”:”500″,”iwidth”:”180″,”width”:”315″,”ajaxUrl”:”http:\/\/hdfilmizle.be\/wp-admin\/admin-ajax.php”,”rtl”:”0″});

    please how to fix this error ?

    i change JQUERY -> $

  • hi i just wanted to know if you have any answer for my problem, i am a little bit behind from schedule.., and so far i cannot fix this problem…

    thanks

  • Colin

    Hi! thank you for this great plugin.

    It seems I cannot exclude pages through the wordpress cms.. It doesn’t save my selection.
    Is it possible to exclude it in the code?
    data.show_category = “0”;
    data.show_post_category = “0”;
    data.post_types = “post,page,job,team”;

    Like this?? thanks!

  • Hi there,

    Since the last update the search box is not working well. It keeps searching when entering a text. When you hit enter there are some (main) results (A page shows up) What could be the problem here?

  • dear support,

    recently I install the uebermenu plugin, and i would like to include the ajaxy live search in the menu, on the right how you can see in the web site, the problem is, when i try to search for a post, the information appear cut off, is like the area where the logo is, is interfering with the results, how can we fix this issue?

  • rajan

    Hi,
    I have installed ajaxy in my woocommerce blog is working very well, i accidently removed the items in “taxonomy search”- i mean clicked on “hide from searc”. But now i want to make them visible on search. Right now, the taxonomy search settings page has no items. how can i get them back.

  • Hi, your work it’s awesome, Unfortunately I have a problem, do not know how to put the url of the search box , so really the coming default in the configuration of the plugin , I give to look , show me the items but selecting ” see more results” sends me to the page home , my problem is not basically like putting the url in the search box with settings that ?s =%s ​​does not work.
    My url http://ninjawebcorporation.com/vital/?post_type=produtos/
    but i don’t know how puttin’ on the url search box
    http://ninjawebcorporation.com/vital/?post_type=produtos/?s =%s
    if I leave so he sends me to start , please help.

  • Hey, i installed this plugin, it’s working perfectly on the other themes but on my theme it’s not working. How can i fix it? Maybe it’s some ajax or javascript problem.

  • Andrew

    Hello.
    Thank you for the great plugin
    Tell me, please , how to make a search by category , was carried out only among child categories one category?

  • Romanos

    Hi,

    thanks for this great plugin. I configure it to work on the wootique theme quite easy, and it’s really awesome. It works fine but if the user press the enter or the search button instead of the products on the list, the search query becomes home-url/?s=%Query% instead of home-url/?s=%Query%&post_type=product. How can I add the &post_type=product if the user just press the enter of the search button. Thanks in advance for any advice &help.

  • John Hunt

    Thanks for a great plugin!! I was wondering if there is an easy way to change so that if a user enters a search item and hits ‘enter’ that they will be redirected to the ‘see more results’ url that is defined in the back-end instead of the default wordpress search. It seems to work fine for clicking on the ‘see more results’ link, but not if you just hit enter on the keyboard.
    THANK YOU!

  • Sanyi

    Hi, I use your live serch plugin.
    I use twentyfourteen theme and I would like to know how I can align right the search-box field?

    Thanks!

  • Martin

    Dear all, hope to get some help here.

    Using this setting in my User template:

    {display_name}{user_nicename}

    I am getting in search the link:

    (just an example)

    mysite.com/author/testuser1/

    I am using buddypress (Version 2.4.3) and want to generate via search a link to a member.

    Tags are : {ID}, {user_login}, {user_nicename}, {user_email}, {user_url}, {user_registered}, {display_name}, {author_link}

    How should be my link?

    {user_nicename} – no results

    Best,

    Martin

    https://wordpress.org/plugins/ajaxy-search-form/

  • Tyano Jason

    Hello. Nice Ajaxy Live Search plugin. I like it. I have a question though. How do I let the search only look up a specific categories or pages??

  • Hi, i too installed the plugin it was an awesome, but i have 2 problems
    1: While searching it searches the exact string and not escapes the spaces.
    2: enter takes me to post page
    help me in these two cases thanks in advance.

  • Fernando Martin

    Is there an easy way to avoid adding scripts in the search box?

    If I type “window.alert(‘123’);” in the search box I can see the JS dialog on my wordpress.

    Thanks in advance

    • Hi Fernando, the live search doesn’t use eval in any way, i have tested what you said and didn’t work, infact it cant work because the plugin doesn’t evaluate the search string. check if you have a malware on your website.

  • Tomas

    Hi! Plugin is awesome, I only wanted to ask if it is possible to show in results only parent categories (not the child one) or do I have to exclude them manualy? I have a lot of subcategories so it will take a while :-) Thanks!

  • JOrz

    Hi,

    I think Ajaxy Live Search is a fantastic search plugin. I’ve been using it on our website for a number of years and recently found a Javascript conflict bug affecting the user backend and other plugins. The two plugins that I’ve found conflicts with are Gravity Forms and MailPoet 3.

    I originally contacted Ajaxy through the main contact form back on Dec 13, 2017 but haven’t gotten a response yet. I was circling back and found this comment thread specific to Ajaxy Live Search,

    When the Ajaxy Live Search plugin is activated I loose the ability to edited my Gravity Forms forms. I can access the Gravity Forms backend settings but I can’t edit my forms which use a drag and drop builder tool. I wrote the Gravity Forms team when I found the conflict and they suggested I contact the developer. They reached out suggesting the developer contact them directly to work on a fix

    The issue appeared again with MailPoet 3 which I am trying to implement on my site.
    When Ajaxy Live Search is activated I cannot access the MailPoet 3 backend setting tabs.

    Once I deactivate the Ajaxy Live Search plugin I can use both Gravity Forms and MailPoet 3 plugins as intended.

    Thanks for such a great plugin!
    -J

  • Piyush Arora

    This plugin has been discontinued. Look at the support section on the wordpress repository. Sent numerous emails to the developer over the last year but stopped responding.

    Best to look for another reliable plugin that you know, one that has an active support. The last thing an admin would need is a future WP update breaking the plugin, resulting in a site-wide white screen.

  • Hi Piyush,

    The plugin is not discontinued, however i am not adding any new features, only bugs and fixes, the only email you sent i replied to with a way to be able to debug, you possibly have a conflict in your theme, unfortunately i cannot replicate each and every situation, so once i am able to debug, i will send you a revision.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.