PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]
Cyber Monday 2021
Cyber Monday 2021 timer

Support Forum

You need to log-in to create request (topic) to the support

How to change initial sorting order?

This support system is for all types of the plugins as for premium versions, so for free ones! If you have premium version do not forget in the private data of the request (!!not in the text of the support request!!) after its publishing insert purchase code please (see blue-green button on the right side) and press Save button.
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.


I'm using this solution in my sorting panel:
but I would like to change initial (default) sorting.

When I click"Best rated" button the data-order attribute is set to"ASC", is it possible to change it to"DESC" after first click?


Hello Piotr

Please  drop me  exact  link to  the  issue


Sure, I've added url into private data for this topic..

The point is that now we have to click"Best rated" button twice to order lessons from the best rated to the worst, we would like to click only once.. hope you understand.. Thanks


Try  in  file - \plugins\meta-data-filter\views\sort_panel\button_filter_panel.php - change  this  code -

<?php echo($order == 'DESC' ? 'ASC' : 'DESC') ?>


Thanks, I've changed this code - unfortunately it's still the same.. i have to click twice to order from the best rated..


Please cleare all cache and  do  a test


Cache cleared, unfortunately still no change (i've tried also incognito mode in Chrome)

what version of the plugin are you using?


It's version (Free)


Ok!  Try  this  code <?php echo( ($order == 'DESC' && $value[0] == $order_by) ? 'ASC' : 'DESC') ?>  and  drop me  screenshots of  your  code


This code fixed the issue.
Thanks a lot, problem solved.


Great! Welcome;)