Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Other results at top but should be at bottom.
This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko 1 year, 5 months ago.
- AuthorPosts
- October 4, 2021 at 11:46 am #34982
Hi!
Firts of all, GREAT GREAT JOB!!!!!! AWESOME!!!
My issue:
I’ve selected in ‘Ordering’ the ‘Other results’ to be shown at bottom of the results but they still appears at top.
T¡When you search ‘dr560’ the behaviour is perfect. but try to search ‘station’ and the ‘other’results are at top.
We need oher results ALWAYS on bottom.
Please, any idea to solve it??
Really thanx in davance for your time and fast answer!!
Greetings
Jordi
October 4, 2021 at 12:54 pm #34983Hi,
Thank you for your kind words!
Try turning off this option, it should resolve the issue: https://i.imgur.com/VvrdwnO.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 4, 2021 at 1:22 pm #34984Hi!!
Yes, I know. But results are better for us with that option enabled.
Any way to force place ‘other results’ at bottom??
Thanx!!
October 4, 2021 at 1:40 pm #34986Well, not via settings, but could be doable via a custom code.
add_filter('asp_result_groups', 'add_asp_result_groups', 10, 1); function add_asp_result_groups($groups) { if ( isset($groups['_other_res']) ) { $or = $groups['_other_res']; unset($groups['_other_res']); return array_merge($groups, array('_other_res' => $or)); } return $groups; }
Try adding this code to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 4, 2021 at 1:54 pm #34987It works!!!
Perfect.
Thanx very much. Awesome support service!!!
Greetings!
October 4, 2021 at 1:58 pm #34988You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.