I am trying to re-order my categories from the default alphabetical order.
My admin backend my categories look like this:
And on the frontend they they look like this:
Is it possible to have them displayed in the way I have sorted them in the backend?
Post Views: 1
The Category Order and Taxonomy Terms Order plugin will allow you to do this. It’ll add a drag-and-drop sortable interface to the backend where the changes you make will take effect both on the backend and the frontend.
And if you display your categories with the Woocommerce shortcode there is even simpler way to do it – add
orderby="menu_order"
to the shortcode. So for me it looks like this:add this to your args list
Within the array used for the loop’s arguments uses native WordPress functionality to accomplish the OP’s goals… rather than installing yet another plugin where it’s not needed. “Thank you :@aronmoshe_m”
While the approved answer works, there is another way using default woo functionality with no additional plugins.
First look into:
get_woocommerce_term_meta( $sub_category->term_id, ‘order’, true )
Then get all your categories and sort the array using this order.
I do believe you might need an additional plugin to further customize sorting options for categories.
Try looking up Woocommerce Product Archive Customizer or similiar plugins if you do not have any similar functionality in the theme you’re using.