Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterHi,
Thanks for your kind words again!
The way I would handle that is similar to what we have on our demo. For example, this is the “General” category archive for the post type results.
As you can see, there is a search bar on the top right corner, which will automatically filter the results. You have it right, for that you need the results page live loader feature.I quickly looked at the archive source, and based on that I recommend using this DOM selector:
.main-archive-loopInstead of using the same search bar, I would create another one, without the filters. The reason is, that on the category archives when the archive live loading is enabled, the results are automatically restricted to the current category.
In my opinion the best practice is to use a search bar, without filters as the user already knows that they want to search only the given category archive.Ernest Marcinko
KeymasterSure! Thanks, that works, however I have no access to the theme file editor: https://i.imgur.com/jM1wBVf.png
Can you please add temporary FTP details as well so I can look at the theme files and locate where the integrated search form is?
I can try it via the wordpress theme file editor, but that is much more dangerous, if I make any mistake it will instantly cause a server error which I can’t recover.Please mind that I can’t promise anything as this is a theme related issue, but I will try to help as much as I can.
Also, let me know if the theme support responded, that would make this super easy.
May 1, 2025 at 11:56 am in reply to: Display the Suggested search keywords in the results dropdown #53863Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterThat’s great!
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
No worries, I have not answered because I couldn’t find a solution to this yet.
Maybe via a custom code where checking if there was no option set, but I’m not sure if this works at all:
add_filter( 'asp_query_args', function ( $args ) { if ( isset($_POST['options']) && !str_contains($_POST['options'], 'customset') ) { $args['post_type'] = array( 'product', 'page', 'story', 'event', 'team', 'faq', 'video' ); } return $args; } );Try adding this code via the Code Snippets plugin or to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterPossibly the advanced title and content fields.
In case you want to roll back, make sure to have a full site backup including the database. It’s not possible to revert by installing an older version as data structures change and could break everything.
Ernest Marcinko
KeymasterWell, if you do a manual installation wordpress should let you do it.
If not, then if you simply extract the downloaded zip file, hen delete the
readme.txtfrom the root directory, and also change theajax-search-pro.phpfile changing this line (8):Requires at least: 6.5to:
Requires at least: 6.0Then just compress it back to the same zip file and it should work.
Ernest Marcinko
KeymasterHi,
Unfortunately I can’t provide older versions as they have number of 0 day security patches, and it is would pose a security threat to your system.
The plugin will still very likely work on 6.1.1 though, there is only one feature on the back-end controller that requires a higher version for stability, but should be okay.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts