Title: Reverse Custom Attributes Dropdown Order
Last modified: August 14, 2018

---

# Reverse Custom Attributes Dropdown Order

 *  Resolved [kareemsayeed](https://wordpress.org/support/users/kareemsayeed/)
 * (@kareemsayeed)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/reverse-custom-attributes-dropdown-order/)
 * I understand I can manually edit the attributes order from the backend, however,
   I have hundreds of products so I’m looking for an automatic solution to add to
   my functions.php. I believe the dropdown menu is currently ordering the attributes
   in alphabetical order, so I simply need to reverse the order to achieve this 
   goal. Another solution would be running something to update the Default Form 
   Value for every product but that approach is most likely very tricky.
 * P.S. I’ve attached a screenshot.
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Freverse-custom-attributes-dropdown-order%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Stuart Duff – a11n](https://wordpress.org/support/users/stuartduff/)
 * (@stuartduff)
 * Automattic Happiness Engineer
 * [7 years, 8 months ago](https://wordpress.org/support/topic/reverse-custom-attributes-dropdown-order/#post-10621376)
 * Hi [@kareemsayeed](https://wordpress.org/support/users/kareemsayeed/),
 * I couldn’t find a plugin which would control all attributes order dynamically
   but I did come across this post below which has some code that could be able 
   to alter the ordering of attributes in bulk.
 * [https://stackoverflow.com/questions/35733629/i-want-to-display-the-attributes-in-a-specific-order-in-the-drop-down-in-wooco](https://stackoverflow.com/questions/35733629/i-want-to-display-the-attributes-in-a-specific-order-in-the-drop-down-in-wooco)
 * As always only use code like this on a test site and thoroughly test on that 
   before thinking of committing any code or changes to a live site.
 *  Thread Starter [kareemsayeed](https://wordpress.org/support/users/kareemsayeed/)
 * (@kareemsayeed)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/reverse-custom-attributes-dropdown-order/#post-10634046)
 * Hi Stuart, thanks for the reply and link! Ultimately I had a little bit of javascript
   added to my site, which selects (my desired) attribute within a second of the
   user browsing product.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Reverse Custom Attributes Dropdown Order’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [attributes](https://wordpress.org/support/topic-tag/attributes/)
 * [order](https://wordpress.org/support/topic-tag/order/)
 * [reverse](https://wordpress.org/support/topic-tag/reverse/)

 * 2 replies
 * 2 participants
 * Last reply from: [kareemsayeed](https://wordpress.org/support/users/kareemsayeed/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/reverse-custom-attributes-dropdown-order/#post-10634046)
 * Status: resolved