Is there a way to have the categories automatically sort based on alphabetical order? I added 4 new categories, but they are not sorting even after refresh. Anything I am missing here?
This topic has 5 replies, 3 voices, and was last updated 21 hours, 19 minutes ago ago by Tony Rodriguez
Is there a way to have the categories automatically sort based on alphabetical order? I added 4 new categories, but they are not sorting even after refresh. Anything I am missing here?
Hello @HUSSTLE,
Please try using the following PHP snippet in your child theme’s functions.php file:
add_filter('etheme_widget_product_categories_query', function($args) {
$args['orderby'] = 'name';
$args['order'] = 'ASC';
return $args;
}, 10, 1);
If you still require our assistance, please provide temporary wp-admin access in the private content section.
Best regards,
Jack Richardson
The 8Theme’s Team
Worked BEAUTIFULLY!
Thanks!
Thanks for the support! My topic “Product Categories (Shop Sidebar) – How to Sort?” has been successfully resolved.
Dear HUSSTLE,
It’s great having you in our WordPress & WooCommerce community!
Every insight you share helps us refine XStore and build tools that empower thousands of online store owners worldwide.
Leave Feedback →
(takes less than a minute)
Together, we grow stronger with every release.
Topic closed.
The 8Theme Team
The issue related to '‘Product Categories (Shop Sidebar) – How to Sort?’' has been successfully resolved, and the topic is now closed for further responses