Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Filter Custom Field and Grouping User
- This topic has 9 replies, 2 voices, and was last updated 2 years, 10 months ago by
Ernest Marcinko.
-
AuthorPosts
-
July 27, 2023 at 9:32 am #44821
vantinh
ParticipantHi,
I have set up the plugin with compact model, vertical and show post on different languages but I can filter post via custom field, even though I have tried to index table for all datas.
1. Custom Field Filter notworking
I have a custom field type user for product woo. I connect via ID of User as post meta in backend.
I have other custom field as stadt (city). When I search with city , the plugin does not return anythings.2. Group Name User:
Can we add custom User Heading for vertical layout, because we are using group via Category / Terms and searching with products, page, posts, users.Thanks
July 27, 2023 at 9:39 am #44823vantinh
ParticipantI have short code at this page
July 27, 2023 at 4:02 pm #44833Ernest Marcinko
KeymasterHi,
Thank you very much for the details!
1. Can you please also add temporary FTP access? I can only see the IDs being returned for some reason, maybe I can check if there is any way to get the user data as well, but I need to make possible changes on the plugin core code for that.
2. Sure, you can rename the group here: https://i.imgur.com/XQshxtg.png
July 28, 2023 at 8:05 am #44840vantinh
ParticipantYou cannot access this content.
July 28, 2023 at 8:09 am #44841vantinh
Participant1. I have install the plugin WPIDE File Editor and hope you can edit plugin or test some things via this plugin.
2. Sure, you can rename the group here: https://i.imgur.com/XQshxtg.png
Yes ,I can do it but other posts will come here and that would not be user category.
As I can see that your plugin does not support users in a category with the category/terms mode .
I can fix this code in includes/Query/SearchQuery.php. should I do it ? or you already have this feature.thanks
July 28, 2023 at 12:12 pm #44854Ernest Marcinko
KeymasterHi,
1. Sure, I can try. Please make a full site back-up first and then let me know if I can proceed. If I make any mistake the files may not revert and a backup must be used. Very unlikely, but better to be safe.
2. It’s a bit more complicated unfortunately. Taxonomy term grouping uses taxonomy terms to group the post type results, and wherever it’s not applicate it’s placed to the “other group”. User results are not post types, so they automatically go to that group.
I can maybe suggest a custom code to alter the groups, but I can’t promise anything.July 31, 2023 at 8:24 am #44873vantinh
ParticipantHI,
1. This website ist test website you can adjust your plugin normally. Please tell us what you did in the plugin that is very important for us in order to maintain our website.
and have you found any solution yet ?2. I can add word before title of post to differentiate Post , Page and Users. Tomorrow I will have a meeting with marketing department and let me ask theme whatever I can do it or not.
Thanks
July 31, 2023 at 2:08 pm #44883Ernest Marcinko
KeymasterHi,
1. Thanks! I made a possible adjustment, now the User display name should be indexed by the field name.
2. Okay, let me know.
August 1, 2023 at 11:27 am #44895vantinh
ParticipantHI
1. could you tell me what and where did you change ? it seems working with custom field type users, But other custom does not work including stadt (city) custom field
August 2, 2023 at 1:40 pm #44908Ernest Marcinko
KeymasterSure! I had to add a few lines to the
ajax-search-pro/inlcudes/classes/Index/Manager.phpfile to fetch the user names on the user type field properly.The stadt field does not seem to be selected under the index table options, that might be the cause for that.
-
AuthorPosts
- You must be logged in to reply to this topic.