Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi Mel,
It is only the custom ajax handler – with the update the files are probably replaced with default server file permission, which may have been updated to not allow direct file access outside of wordpress includes and root directories.
Turning off the custom ajax handler will solve the issue. If you still getting blank (without error on live), then it also could be a miscofiguration of some sort – as the two search bars are not the same, and therefore there can be a tiny difference in the config. On the staging it works okay on my end.
September 4, 2024 at 8:34 am in reply to: Issues with Filter Functionality and Date Picker in Ajax Search Pro Plugin #49118Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
Thank you for the details, it helps a lot!
Can you please check the log-in details? I tried to check on the settings, but the username/password seems to be incorrect.
September 4, 2024 at 8:25 am in reply to: Any idea why the searchform is not 100% width on table and mobile #49115Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
The plugin does not create those files for sure. It does use the cache directory, but only to store the generated stylesheets and the possible script files. All of those are stored in the wp-content/cache/asp folder, but they are very rarely changed or created.
September 3, 2024 at 3:19 pm in reply to: Issues with Filter Functionality and Date Picker in Ajax Search Pro Plugin #49103Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
When I check the original (non Elementor) post content stored in the database, then this includes all of those keywords: https://i.imgur.com/aKFQkru.png
I have added the following custom code snippet to prevent that from indexing:add_filter('asp_post_content_before_tokenize_clear', function($content, $the_post) { return apply_filters('the_content', $content); }, 10, 2);Now it should be all right.
Ernest Marcinko
KeymasterHi Christian,
Sure! With a tiny bit of modification it’s possible to add a CSS class:
function asp_show_the_post_type_content( $results ) { foreach ($results as $k=>&$r) { if ( isset($r->post_type) ) { // Modify the post title $post_type_obj = get_post_type_object( $r->post_type ); $r->content = "<div class='$r->post_type'>" . $post_type_obj->labels->singular_name . '</div> - ' . $r->content; } } return $results; }With this, the post type is wrapped in a div with the post type class name, which you can reference by:
.asp_r .post_type_slug { }Ernest Marcinko
KeymasterHi,
Thanks for the details, it helps a lot!
You are looking at the index table options, the exclusions are under the search instance setting, then under here.
That should do the trick 🙂
Ernest Marcinko
KeymasterHi Christian,
Yes – you have two options:
1. Using results grouping by post type – this is simple, but the ordering will change because of the groups.
2. Using a bit of custom code – this might be closer to what you are looking for.Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts