You might want to take a look at the WooCommerce docs, there’s a good snippet there showing now to add custom sort orders.
The link is http://wcdocs.woothemes.com/snippets/custom-sorting-options-ascdesc/
Once you’ve ‘defined’ your custom order you’ll of course need to set it as the default in the store settings.
Related Posts:
- Add subtitle to Woocommerce product title
- How to rename a custom field?
- How can I make wp-pagenavi work on a custom query built upon a form submission? [closed]
- Meta Query with AND & OR?
- Display custom field value on woocommerce product page
- Plugin similar to Taxonomy Drill-Down for custom fields?
- How do I query for a post by custom field?
- Woocommerce with metabox plugin
- Count how many posts have a custom field set
- Upcoming Event: How do I sort database by custom date field, but ignore past dates?
- sort search results by custom fields using dropdown
- How can I sort homepage by a meta value?
- Loop to display random posts only if a custom field matches category
- Conditional custom field query
- Display only past events on that page using Visual Composer Grid Bulider
- Custom Field Create Bulk via SQL Query
- Create Pop-Up Box with Custom Field Content Inside the Loop
- How to add image attachment to post from a single meta key (Woocommerce)
- query usermeta from custom field
- Is there any way to get all meta and standard columns for any WordPress object after searching based on meta key and value
- Order RSS content by an advanced custom field value
- Alter main archive, to show posts with meta as last
- Collect user custom field in product page woocommerce
- Limits, not all post are showen when querying for posts by view count
- Why orderbyb meta_value_num won’t affect the generated SQL Query order?
- Get post ids sorted by meta_key
- querying a custom field
- pre_get_posts : only get posts by wp_usermeta value
- Query post by date (stored custom field meta as yyyymmdd) and differentiate across 12 months
- How to query an out put value?
- List custom queried terms in the edit-tags.php?taxonomy page
- Modify date query by URL parameter using pre_get_posts and $_GET
- Loop through incrementing custom fields
- Custom search SQL Query to add custom field in result
- Plugin or shortcode for ISBN number?
- The best way to collision check in WP
- how to add product subscription field in woocommerce plugin
- How to exclude custom fields from search queries?
- Run Function if Order Meta Exists – WooCommerce
- WP_Query () using taxonomy, custom post types
- How to query for posts with either one or another custom field
- Best way to sort estates and query them (for rent? yes/no. contains office space? yes/no)?
- Custom Query: query by post custom meta data
- Get array of posts based on custom field values
- Searching with Multiple (Parallel) Criteria on Custom Fields?
- How to query posts by month based on date custom field?
- Custom Field Date Problem
- Compare ACF date field (if exists) and post date and order DESC
- Problem with revisions only returning four results
- Search & column order by meta value in admin
- Dynamically populate query source in Elementor post widget
- searching by keywords in post’s metas or pagination links problem
- select user with all meta field and field value. I am use Below Query for this ,So any of know another way to fast query instead of below query?
- Create custom query for search?
- query specific posts according their custom fields, using sql SELECT
- Meta_query not filtering posts
- Get multiple posts with some custom fields efficient
- How to add a prefix to existing custom fields over MYSQL query?
- Complex WP_Query Using Post Date And Post Meta
- How to check if custom field exists in this widget query
- Only show content slideshow if “slideshow” custom field exists
- How I can change PayPal IPN ‘custom’ field in woocommerce?
- How to display search query as formatted text?
- Using wordpress post data as input for google visualisations
- Adding a prefix to a post title
- copy attachments to another post type and change attachment url
- Cannot edit post meta fields with rest API
- Only display custom field if it there is a value inside
- Custom field values repeating
- Plugin not saving values when placed in a folder within /wp-content/plugins
- Security checking in meta_box save is reluctant?
- Separate table or usermeta
- UPDATE on SELECT results. A SQL query to swap Author with Meta Box value
- Add microdata from schema.org [closed]
- Displaying multiple URLs as custom field values
- WordPress and a secondary database?
- remove initial wysiwyg editor from cms page edit
- correct validate and sql query
- Filter post style attribute
- Best approach to make all tags searchable by the wordpress search function
- Update some (not all) post titles with custom field values before running the Loop
- Arrays in custom fields or is there a better way?
- Why Custom fields description is not working WordPress Version 5.4.2?
- Setting user permissions per post
- Problem Advanced Custom Fields PRO
- Weird custom fields data lost
- WooCommerce 3 get custom variation on process order [closed]
- query_posts -> get page_id from custom field
- WordPress doesn’t save a post revision when changing CMB2 custom fields
- Output Custom Field value to shortcode
- Update custom table on metabox POST
- display custom media folders to wordpress media popup
- Custom Meta Boxes and Fields for WordPress: Change directory upload based on user-edit page
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- Get custom field from other post in carousel
- Form fields based on custom fields
- show custom field content in jquery tabs
- Create citation and url in post using 3 custom fields with conditions for each field… So close!
- Show only first image of multiple image field
- Custom Fields after update to WordPress 6