Forum Replies Created
-
AuthorPosts
-
July 24, 2023 at 9:54 am in reply to: Ajax Search Pro for WordPress need help for our real estate website #44784
Ernest Marcinko
KeymasterHi,
Sure!
Usually themes or theme builders have “tab” or similar builder elements. You could create two search bars and configure them so that the first one shows only the “for rent” and the other one shows the “for buy” items. Then add these search shortcodes to the tab feature of your theme or theme builder.
Depending on how the rent/buy items are marked, you can use results exclusions or inclusions to only allow resulst for the real estate types.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi Paul,
Thank you very much for the details! I have found a possible issue with the tokenizer in relation to the tablepress shortcodes. I have made a minor correction on the code to address that. I will make sure to include this fix in the ucpming release so you don’t have to worry about it.
Ernest Marcinko
KeymasterTry maybe something like:
admin-ajax.php /wp-admin/admin-ajax.phpErnest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
July 21, 2023 at 8:48 am in reply to: Hiding content (e.g., ) conditionally if search has been performed #44764Ernest Marcinko
KeymasterHi,
Thank you for the details!
If I understand correctly, you have the auto-populate feature enabled, which shows some results. Then when the user changes a filter or enters a new phrase a new search is initiated, but this time you want to exclude some results from this and all succeding queries. Is that correct?
If so, I think there is a very simple way to do it programmatically via the asp_query_args hook:
add_filter('asp_query_args', 'asp_exclude_on_non_autopopulate', 10, 1); function asp_exclude_on_non_autopopulate($args) { if ( !$args['_is_autopopulate'] ) { $args['post_not_in'] = array(1, 2, 3, 4); // Exclude posts by ID } return $args; }This code will exclude the items by IDs from the array, if the current search quers is not the auto-populate query.
Ernest Marcinko
KeymasterWell, that is a tough question, because it highly depends on what exactly triggers the block.
I assume there is some sort of an interface, where you can look up past blocks by their ray IDs. Finding the block by that ray ID should clarify what exactly triggered the firewall to block the whole request. Then it should offer a way to make an exception for that request type.Usually it’s something to do with the request body – something in the POST variable, maybe an argument it resembles a threat in the heuristics database.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi Neto,
Thank you for the details!
When I am logged out I get the same error message on both desktop and mobile. The error response reveals this message from your server: https://i.imgur.com/Ohxkc2J.png
This means, that a firewall/server policy is blocking the requests to the wordpress ajax handler. If you use any firewall/fence plugins, check the firewall configuration. It is more likely coming from the actual server or CDN, you may have to check the firewall on that end as well.
There is a ray ID you can refer to for a block to filter further requests: RID: GCUQZ346G2S8KVREXVD0BWLCErnest Marcinko
KeymasterHi Mark,
The results page layout is completely controlled by your theme – the plugin can’t change that. I see there is some sort of a styling problem there, you may need to ask Avada support about that. It looks as if a stylesheet file was missing or needs to be generated again.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
I only see some archive links and selection which redirect so topic tags. Is that what you mean? Those seem to be only static links, that’s not possible via the plugin.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts