Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › PRO Plugin Sort on price not working correctly
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 2 years, 9 months ago.
- AuthorPosts
- August 31, 2020 at 7:51 am #29190
The title PRO Plugin Sort on price not working correctly is NOT correct sorry!
It should be: “AJAX PRO: Custom field filter not showing the right results”On this page: https://handwerkmarkt.nl/allround-web-test/ is shown our ajax form.
We have added a custom field “winkelnaam” this is the store name of the sellers on the platform. But if we select a “winkelnaam” the filter ignores the input and shows not only the result of that store.
The filter is in the backend called “Homepage”. (https://handwerkmarkt.nl/wp-admin/admin.php?page=asp_settings)
-
This topic was modified 2 years, 9 months ago by
allroundweb03.
Attachments:
You must be logged in to view attached files.August 31, 2020 at 1:02 pm #29203Hi,
Thank you very much for all the details!
The issue is, that you are using an user meta field as the filter, but trying to filter a post type (product). User meta fields are to filter user type results, and not post types – it is not possible, as there is no direct relation between them.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 31, 2020 at 2:47 pm #29204Hi,
Thank you for the quick response.
Is there any work around or hooks/filters that we can use to manipulate the filter or results.
And can that hook/filter access the user meta field that is chose on the frontend.Many thanks.
September 2, 2020 at 8:57 am #29215Sure, if you want to make changes to the fornt-end filters (visually), then check the filters API. If you want to change the meta query then using the asp_query_args hook may help. The asp_results hook allows changing the final results array.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
-
This topic was modified 2 years, 9 months ago by
- AuthorPosts
You must be logged in to reply to this topic.