Website Building » WooCommerce » How Do I Create a Custom Sort in WooCommerce?

How Do I Create a Custom Sort in WooCommerce?

Last updated on January 18, 2023 @ 1:25 pm

If you’ve ever wanted to change the sorting order of your products in WooCommerce, you may have noticed that there isn’t a built-in way to do this. However, with a few simple steps, you can create a custom sort order for your products that can be controlled from the WooCommerce settings.

In your WordPress dashboard, go to WooCommerce > Settings > Products. Under the “Default Product Sorting” setting, select “Custom” from the dropdown menu.

Once you’ve done this, a new setting will appear below it labeled “Product Sorting”. Here you can choose the default sorting option for your products. The options are:

– Default (no sorting)
– Date (newest first)
– Date (oldest first)
– Title (ascending)
– Title (descending)

Choose the option that you want and then click on the “Save Changes” button.

PRO TIP: If you are not familiar with code or do not feel comfortable editing your theme files, we recommend that you seek help from a developer. Making changes to your theme’s code can break your site if not done correctly. Always create a backup of your site before making any changes.
Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.