Ordering search result by categoriy ordered in admin wordpress

I use woocommerce plugin for wordpress and i want ordering the result search by categorie ordered in admin panel.

I have creat in admin 4 categories :
1/ cars
2/ truck
3/ moto

after add product i have rang my catégorie in my admin panel by drag and drop
1/ truck
2/ moto
3/ cars

Now if i search a product in my shop, the product are diplay by date or title … Me i want display the product by order cat => truck, moto, cars

I have tried a new query but no success

An idea ? thx

Read more here: Ordering search result by categoriy ordered in admin wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *