3223 comments found.
Hi, Can I disable the Ajax feature (live search) and show the a results page? If this is possible can you post here the doc page to view the settings? Thanks.
Thanks! Can you tell which is the subpanel setting to change the setting for the results page. I need to change the layour for this page.
How can I create a full screen search with a layer over the screen than search centre. or full screen with layer and search box at the top. Is this possible?
Hi,
Currently there is no option within the plugin to do that, you will need a 3rd party pop-up (like Elementor or something similar) to place the plugin shortcode to.
A very similar feature is the compact search box, in case you want to try that.
HI, I have a pre-sale questions. Tried your plugin and working very nice, but I could not find way how to create page for results (ex.results.php). Is here this option and how to get to it ? Tried also this : https://documentation.ajaxsearchpro.com/behavior/results-page-override but seems to not working. Thank you for your help.
I want to show the ajax search search box inside a form. When a user clicks any result, I just want that data to be selected, like the id but prevent form from opening the link. How can I do that? Also how can I get a hidden field in the background with the id?
$(”#ajaxsearchprores2_1 a”).click(function(e) { e.preventDefault(); });
I am trying this javascript but it doesn’t work. Tried several other combinations. Any idea what to refer?
You may want to simply target the ”#ajaxsearchprores2_1” only, and stop event propagation as well with the preventDefault(). I don’t know if using jQuery will actually work, native javascript might be better to use.
This works but there’s a small problem. #ajaxsearchprores2_1 isn’t in DOM till the user types and there’s a result. So addEventListener isn’t working. Any way to load #ajaxsearchprores2_1 at page load or to attach an eventlistener later?
Use a mutation observer or the search_end_event as well to attach your handlers.
That worked!!!! One last question, how do I get the title/value of the search result item I clicked? I am trying something like this – document.getElementsByClassName(“asp_r_stores hovered”)[0].getElementsByClassName(“asp_content”)[0].getElementsByClassName(“asp_res_text”)[0].childNodes1.value
Some times it works, most times it doesn’t
I think I figured this one out. Only need to show the selected item’s text in the input box. I tried adding value to <input type=”search” name=”phrase” value=”123”> but this doesn’t work. Is there any other field I am supposed to use?
Also how to close the results box from javascript? Sorry for asking too many questions
It’s all right, I will try to answer your questions.
The problem with getting the currently clicked item text is, that it is bound to the #ajaxsearchprores2_1 container. The “hovered” class might be added only at a later stage, after the event listener is executed.
Try using the e.target to get the clicked element, and the fetch the text from up/under the dom tree, something like this:
jQuery(function($){
$('.asp_main_container').on('asp_results_show', function(){
$('.asp_r').on('click', function(e){
e.preventDefault();
e.stopImmediatePropagation();
let text = $(e.target).find('a').text();
if ( text == '' ) {
text = $(e.target).closest('a').text();
}
console.log(text);
});
});
});
This should print the text of the closest result to the click location.
To close the results, you can use the plugin javascript API:
ASP.api(2, ‘closeResults’);
Thank you Ernest. That helped 
Is there a way I can change the text displayed in the search box once a user selects any result? I tried to set values but doesn’t seem to work correctly.
I almost forgot replying to you. Thank you Ernest!!! Your support helped me design the search box exactly I wanted.
You are very welcome 
I bought this a while ago… just tried to use it with Genesis Theme… It wouldn’t replace the theme/wordpress search… I suspect this is because it’s not ‘hooked up’? Can you provide a snippet/code for me to paste in the function.php to make it work?
Hi,
Make sure to try to enable the search replacement feature – if the search form in Genesis is properly registered, this will work.
If it’s a hard coded search bar (usually in special layouts), then look for widgets or places for the shortcode.
Hi, is it possible to show last browsing history?
Hi, we noticed that since the last WordPress update the CSS is broken in combination with a CSS combination plugin (SG optimiser). Did something change regarding css? (turning of CSS combination solves the issue). It worked without issues for years, it just happened after the last WP update.
Hi,
Yes – SG optimizer has a bug, where it picks up some CSS files, but then it does not add it back in during the combine method. We already addressed that in the next release with a hacky workaround. I hope they will fix that soon, I see a lot of bypasses in other plugin codes as well just to get around this SG optimizer issue.
Until then, you can resolve it by changing this option: https://i.imgur.com/46DQfwq.png.
Hi, I contacted their support but they mention there is no issue with their plugin :s. When do you expect to release your new version with the ‘hacky’ fix?
Oh wow, that is an interesting approach from their part, but it’s all right. In about 2 weeks the next update will be ready. Until then keep the option I suggested, it will work perfectly fine.
Hello, Good day!
I am using Metabox plugin to create taxonomies and custom field.
I’ve tried many different way but I can’t include the custom filed created by Metabox. Metabox custom fields are called in taxonomies and all the custom fields are Text Type.
So please let me know how can I include the Custom Field’s Data in the search results? Thank you
Hi,
Based on your description these are registered as taxonomies. If so – then you can use the advanced title and content fields to show taxonomy terms in the results list.
Can you set it to only show results based on a specific category’s posts title only? I don’t want the results to show results that are in the description, only the title.
Sorry I was asking if you can restrict the search to a post title only and NOT the content?
No problem, my mistake. Yes of course – you can choose what fields to search within – title, content, excerpt, custom fields etc..
Feel free to try the back-end demo as well, where you can experiment with most of the plugin features.
is there something on your roadmap and if so what is on there? 
Hi,
Yes, of course 
Currently, we are working side by side on the next update and on the new plugin site, which is very outdated right now. The new site takes longer then expected, once it is finished, we are pushing the next update along with it.
Here is a list what to expect in the future generally:- More content via our new blog on the new plugin site regarding product updates and features – expected weekly
- More newsletters about product updates and general feature updates
- More demo content about plugin features, which may not be apparent right now
- Posts and post type archive page live filtering
- Number range custom field filters – two input boxes for numeric range values with automatic formatting features
- Number formatting for advanced title and content fields via attributes – so numeric custom field values can be formatted, like: {field_name type=number decimal_separator=”.” thousand_separator=”,”}
- Script loader improved – now the plugin fully auto-detects where the search is used, and compiles and loads the required scripts only
- Further improvements on the loading methods, tested 100 points for pagespeed insights/lighthouse every single time
- Complete rework of the plugin filters interface – A new drag/drop style interface to easily handle building the filters
- Similarly to the search and results box – a design interface (probably connected with the filters interface) to easily style the search, filters and results output
- New search analytics interface – more data, graphs and data tracking (search phrases, results, most visited elements etc..)
We hope we can finish the new plugin site first, where we can announce these plans and the process on a weekly basis.
That sounds really cool! Looking forward to the speed improvements in particular ason my site there are many posts and i can start to feel it a bit 
is there a way to change the background-color from the filters away from gray to white?
Google Search Console is picking up search queries done with the plugin. So I have over 300.000 pages marked in GSC as Excluded by ‘noindex’ tag – those queries shouldn’t be picked up in the first place… Those are not pages, just search queries.
How to disable this? I don’t want google bot to treat search queries as no-index pages.
Hi,
The plugin does not generate or print any links to any queries, so these have to be presented somewhere else as clickable links. As far as I know google bots do not “trigger” search inputs either. The search results pages are by default excluded by the bots too (queries including the ?s= parameter and so).
Check your sitemaps if you have any, those may include the contents. You can also use the robots.txt to disallow any query strings, but that again is out of the scope of this plugin.
Hi,
Some of the styling is missing from the page – the plugin actually does search, but the list is pushed to the bottom of the page. Try clearing your caches, and reinstalling the plugin as well so it is not a corrupted file issue.
If no luck, then feel free to open a support ticket.
thank a lot !! i ul again and it wroks !!
Hi wpdreams,
I bought your plugin recently, I control almost all possibilities and it’s good. However for the moment it works only with Articles. If I add “Pages” in “Search source > post type search” and I make a search I get nothing.
- I disabled all plugins excepted yours => same - I changed theme to a basic WP theme => same - And I have only 2 pages with real content. - Im’ using the regular engine, no index. Anyway I tried with index also, same issue.
Any idea ?
*By the way I ask support here cause I have an account. To be honnest it’s really not comfortable to create a new account on your page for maybe only 1 ticket. I think you should allow free tickets with a field for purchase code. You undesrtand we (developpers) are fed up with creating new accounts everywhere for very short time.
Thank you for your understanding ang help.
Hi,
Thank you for your suggestion, hopefully we can make it simpler sometime in the future. Our registration form does not require email validation, and upon hittin the register button you are logged in instantly, so it should not take longer than a minute comfortably.
As for the question – this is very hard to tell without actually seeing the configuration, but it is very likely a configuration issue somewhere. Here are some key configuration points you can check:- Make sure no post type or post type filters are active – filters are in effect, even if they are not visible on the front-end.
- Check the post ID exclusions
- Check the author exclusions
- Check the taxonomy term exclusions as well as the filters
- Check any date related exclusions as well as the filters
- Try a different keyword logic to see if it makes any difference
- Choose only the “Page” post type to search, to see if you get any results
Hi Ernest,
thank you for your answer. I checked again and again, but no way. I have no exception at all.
So I made a new test, I added 2 ID posts - One is an Article - the 2nd is a Page => I search a word present in Article and I get the result ok => I search a word in my Page and I get nothing.
Then I added the word I looked for in Page in my Article => I get the Article in result and still not the Page.
I check the database, all is ok, - Id is correct - status is “Publish” - the post_type is “page”.
I use guttenberg, and all Elementor options are Off.
I’m stucked,
It’s a bit sad cause your extension is very nice, the best I tested until now amongst 10 plugins, pleasant and efficient.
Thanks anyway for your hard work.
Hi,
I will have to see this directly to be able to tell – there is definitely something somewhere. There are many possible things, which can affect the search results.
Please open a support ticket with back-end and FTP details, and I will check the configuration and do a bit of code debugging if needed.
FYI, I created a new Search menu from scratch, I did nothing into and it works. So I will check the differences to understand before opening a ticket.
I let you know
OMG ! It’s fixed, it was not an exclusion but an Inclusion.
I included 3 Tags taxonomies, because I used it as an auth. access levels. For example Tag_1: admin, Tag_2:member, Tag_3: visitor I created 3 menus, and of course none could search in pages but only articles, cause Articles only have these tags.
So right now it’s ok for me, but for the future what could be the best way to manage users levels ?
Thank you again, and have a nice weekend.
Thank you
Keep doing your great work !
Hi,
I updated the plugin to the latest version v4.23.3 and now I’m getting an error when trying to activate it.
Parse error: syntax error, unexpected ’:’, expecting ’;’ or ‘{’ in /var/www/wordpress/wp-content/plugins/ajax-search-pro/includes/classes/Core/Init.php on line 420
I suspect that this occurs because the website use an older version of PHP. Is there a way to downgrade or download a previous version officially?
Hi,
That is very likely, that line refers to a function return type declaration, which is a PHP 7 feature.
The plugin will work on PHP 7.4 and above (it should even work on 7.0, very likely), as that is the minimum PHP requirement for WordPress now. If you are using an older version, then I strongly suggest updating to at least 7.4, usually it is very simple on most hosts. Unfortunately older versions are not kept, downgrading to a lower version will cause a lot of data issues.
Hi I purchased Ajax Search Pro for WordPress many years ago (it works fine and I’m satisfied) but before I buy the extended support I want to know Is it possible Product Category Description hide or not display the “main category” page? Description must be visible Subcategory page. E.g. https://www.telnova.fi/tuotteet/valokennot/ -> Valokennot is “main category page ” here Description should not be seen, but the Subcategory page is Lähetin vastaanotin pari Description must be display -> https://www.telnova.fi/tuotteet/lahetin-vastaanotin-pari/
Kind regards Sari
Hi,
Yes – for the live results list you can either exclude the categories by their IDs or try a custom code snippet to hide descriptions for the categories, which are top level categories. Feel free to open a support ticket for that, and we will take a look and suggest a possible snippet.
Hi,
I moved my site to ClassicPress and get the following error when going to the edit screen of the form. The shortcode works but I can’t edit settings because of the error:
Fatal error: Uncaught Error: Call to undefined function wp_set_script_translations() in /wp-content/plugins/ajax-search-pro/backend/search.php:399 Stack trace: #0 /wp-content/plugins/ajax-search-pro/backend/main_settings.php(6): include() #1 /wp-content/plugins/ajax-search-pro/includes/classes/Core/Menu.php(137): include(’/home/customer/...’) #2 /wp-includes/class-wp-hook.php(286): WPDRMS\ASP\Core\Menu::route(’’) #3 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(’’, Array) #4 /wp-includes/plugin.php(449): WP_Hook->do_action(Array) #5 /wp-admin/admin.php(224): do_action(‘toplevel_page_a…’) #6 {main} thrown in /wp-content/plugins/ajax-search-pro/backend/search.php on line 399
Any idea?
I went back to a standard WP and still same, your plugin causes issues with Oxygen builder and prevents saving of pages or editing post templates with your shortcode in. Can you fix or I get a refund to buy another search plugin?
Hi,
The first issue is definitely not plugin related, it reports a function not existing, but that function is from the WordPress core. In that case there might be a problem with WordPress itself. Classicpress may not implement some WP functions, that may explain the issue.
For the second one, please open a support ticket. There was one similar report, but the user somehow fixed it by turning some plugins off – but never disclosed which ones, so I don’t know what the cause is. If you open a support ticket, we can take a closer look at the possible conflict and resolve it on the spot if it’s our plugin related.
Pre sale question: If there are no search results, can I insert a widget to display the most searched content to the user?
Hi,
There is a widget to display the most searched keywords (top keywords), if that is what you are looking for: https://ajaxsearchpro.com/demodata/widgets-example/
Hi there, in the latest version, there is a 200 error in Oxygen Builder when trying to save a template that has a search shortcode in it. Can you please fix this issue? I tested it on a blank install, and the issue is still there. Thanks!
Hi there. Please advise if it’s possible to have a “Sort by” frontend option for a post grid generated with ajax search pro?