Sorting bug
-
Hello.
If you look at page that I need help with at almost bottom of the page, you will notice strange sorting behavior. That is how rating scores will be sorted like:
2.5 – 1.9 – 2.3 – 1.7 – 1.4 – 2 -1.3
I am using Elementor PRO posts widget with following snippet and “sorted_by_rank” querry ID:add_action('elementor/query/sorted_by_rank', function ($query) { $query->set('meta_query', [ 'relation' => 'OR', ['key' => '_glsr_average', 'compare' => 'NOT EXISTS'], // this comes first! ['key' => '_glsr_average', 'compare' => 'EXISTS'], ]); $query->set('orderby', 'meta_value_num'); $query->set('order', 'DESC'); });So, for some posts sorting seemes to be broken.
I have tried all repairing tools (Migrate, Reset Meta Values, Relations), that does not worked for me.The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Sorting bug’ is closed to new replies.
