not the best way (at least if you have a lot of tags)
add_filter('get_terms_orderby', 'get_terms_orderby_natural_slug',10,2);
wp_dropdown_categories( 'taxonomy=week&hierarchical=1&orderby=slug' );
remove_filter('get_terms_orderby', 'get_terms_orderby_natural_slug');
function get_terms_orderby_natural_slug($orderby, $args){
$orderby = "SUBSTR({$orderby} FROM 1 FOR 5), CAST(SUBSTR({$orderby} FROM 6) AS UNSIGNED), SUBSTR({$orderby} FROM 6)";
return $orderby;
}
but still this is a way to do that…
Related Posts:
- Custom taxonomy/category order
- Different post sort order within different categories
- Sort posts by tags in category pages
- How to redefine the sorting of product categories by menu_order?
- wp e-commerce group product by category [closed]
- Woocommerce custom taxonomy order
- Is There a Difference Between Taxonomies and Categories?
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- get_categories for custom post type with a specific custom taxonomy attached
- Order get_terms() By Custom Field
- Could not insert term into the database
- How can I add the featured image functionality to a custom taxonomy?
- Share one taxonomy across multiple blogs in 3.0 [duplicate]
- Weird behaviour when adding terms/term_taxonomies programmatically
- wp_update_nav_menu_item() to insert categories
- How can I custom order the results from wp_list_categories?
- How to create a category and sub-category sorted blogroll with all posts?
- How to get next previous category in same taxonomy?
- Display only deepest category on a single post?
- WordPress Ordering Problem. How to fix ordering 1-10-100 issue?
- How to add HTML5 ‘required’ attribute to wp_dropdown_categories() without JavaScripts?
- Wrap a chosen category name with div
- Order posts by category name
- How to choose a sort order (for posts) per category? (ideally when creating a new category)
- What’s the difference between “parent” and “category_parent” in a WP_Term object?
- Update taxonomy value of post type in query
- How to query posts from specific authors and categories using WP_query?
- Add custom taxonomy under the category title
- Display name of the last child category
- List Terms in Category
- How to get category URL with the slug?
- How to view WordPress’ default category IDs?
- Random taxonomy category list
- Arrange posts by date in front page
- Order wordpress taxonomy parent terms by their children count
- Display Slug instead of Name
- ACF: Display category name using taxonomy field
- Show Available Taxonomy List with Current Category
- Exclude a category from the_category in the single post page
- Why does the argument list_only do on Walker_Category_Checklist::start_el?
- Shortcodes not working in category or tag description
- Filtering multiple categories via the URL
- Display specific categories by ID
- Sorting category products not working
- Order categories by name or view count
- Trying to sort and display categories(not posts) by custom field: ‘order’
- Why don’t posts show up in my categories on the frontend?
- Flat category URLs but retaining hierarchy?
- Drop posts from categories in MySql
- Customize category page for different custom taxonomies
- Get posts under a category with SQL
- How many categories can WordPress handle before performance suffers?
- Custom taxonomy template for categories
- How to let users choose posts order in categories?
- Wacky taxonomy in wordpress
- Question on using custom structures for categories
- Display sibling categories on category page
- How to change the order of the subcategory and category in a post?
- How to modify the output of wp_terms_checklist when used within the built-in category metabox on edit posts?
- Some categories missing on wp-admin/edit-tags.php?taxonomy=category
- List just subcategory and products of active category page in Woocommerce
- How do order product categories – on a parent category page – in Woocommerce?
- WP 4.7 in_category change?
- Illegal string offset ‘taxonomy’ in
- How to schedule categories?
- Let user select their own category
- Copy post taxonomy?
- Setting selected term_id with wp_dropdown_categories?
- creating categories programmatically
- Sort posts alphabetically by category/custom taxonomy, insert divider between different types
- Combining these queries? (Same taxonomy term + same category as post)
- Category post count is not correct
- Disable Category Taxonomy
- How can i change sort category view starting from child then parent, not alphabetically
- Sort categories by custom field in WordPress admin
- Filtering posts in category by tag URL
- Modifying category order
- Bulk assign posts to a category using SQL (MySQL)
- Woocommerce Category Sort Dropdown
- Image Upload Custom Form Field for Category and Custom Taxonomy
- outputting taxonomy hierarchy
- Filter custom taxonomy posts via AJAX
- Why use hierarchical taxonomies instead of many custom taxonomies?
- How get all media from a posts category by db?
- Configure query with multiple categories in a custom order?
- Grouping parent categories into sections
- $args Orderby The number
- get_adjacent_post_link excluded_terms ignored
- Match two taxonomies to display a specific content
- Taxonomy for custom post type not found
- Category base 404 – fix
- Return selected categories only in custom page meta box?
- Assign a category by user and customize the edit-tags.php?taxonomy=category page
- Chained drop-down menu for custom taxonomy using chained.js
- Display only one level subcategory in wordpress
- Hook action when create new category [duplicate]
- Images as Categories
- hide_empty property not working when using get_terms
- Quick Edit on taxonomy names results in error