Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
August 9, 2023 at 12:25 pm in reply to: All my indices are gone after auto-updating WP core files #45004Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
August 9, 2023 at 9:27 am in reply to: All my indices are gone after auto-updating WP core files #44995Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou are welcome!
I don’t think that code will work, but you don’t need it now, you can set the boxes to be unchecked by default here: https://i.imgur.com/ReVsQck.png
You may also want to adjust the logic a bit right here: https://i.imgur.com/ThX8Cyt.png
August 8, 2023 at 10:01 am in reply to: Can Search adhere to menu visibility rules or some other visibility logic? #44966Ernest Marcinko
KeymasterHi Bill,
I assume you are using a plugin/custom code of some sort to make this restriction. It is very likely possible to remove these items from the search results list via a custom code snippet.
For that however I have to know how these items being excluded, and if the specific solution has an API function (or any other way) which let us check if the product is viewable for the current user (or hidden for logged out user). Let me know!
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
August 7, 2023 at 4:19 pm in reply to: Performance suggestion: add index to wp_asp_index table (doc column) #44957Ernest Marcinko
KeymasterYou cannot access this content.
August 7, 2023 at 4:09 pm in reply to: Ajax Search Pro for WordPress need help for our real estate website #44955Ernest Marcinko
KeymasterYou are welcome!
It is not disabled, but the font may have been changed to a white color, please check it here: https://i.imgur.com/4d7G4ju.png
Ernest Marcinko
KeymasterHi!
Thank you very much for your kind words!
1. I’m afraid that is not possible. I usually recommend a custom code when there is a simple solution to an issue, but this is much more complicated, and a few lines of custom code snippet would not work.
2. Yes of course, you can do that here: https://i.imgur.com/0HhZgs1.png
August 7, 2023 at 10:14 am in reply to: Ajax Search Pro for WordPress need help for our real estate website #44945Ernest Marcinko
KeymasterSure!
The property_agent field seems to be a reference field to developer posts, so I have added a custom code snippet to transform the values to the developer post titles for the index (the code is in the child theme functions.php):
add_filter( 'asp_post_custom_field_before_tokenize', 'asp_change_cf_index', 10, 3 ); function asp_change_cf_index( $values, $post, $field ) { if ( $field == 'property_agent' ) { $id = get_post_meta( $post->ID, 'property_agent', true); if ( !is_wp_error($id) ) { $values = array( get_the_title( $id ) ); } } return $values; }Now searching by developer should very likely return results for the properties.
-
AuthorPosts