Other results at top but should be at bottom.

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 Ernest Marcinko 2 years, 6 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #34982
    jjuanola
    jjuanola
    Participant

    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

    #34983
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #34984
    jjuanola
    jjuanola
    Participant

    Hi!!

    Yes, I know. But results are better for us with that option enabled.

    Any way to force place ‘other results’ at bottom??

    Thanx!!

    #34986
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Well, 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 :)


    #34987
    jjuanola
    jjuanola
    Participant

    It works!!!

    Perfect.

    Thanx very much. Awesome support service!!!

    Greetings!

    #34988
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.