You can order posts by custom taxonomy terms by adding a posts_clauses filter, see below answer:
https://wordpress.stackexchange.com/a/14313/14499
Make sure that on functions.php you add both that function AND the call to add_filter(‘posts_clauses’, ‘orderby_tax_clauses’, 10, 2 );, otherwise it won’t work.
Assuming annee is the custom taxonomy, this should then work:
query_posts($query_string . '&posts_per_page=-1&orderby=annee&order=ASC');
Related Posts:
- Loop through custom taxanomy in post and display custom fields from posts
- How much worse is querying custom fields compared to custom taxonomies, quantitatively
- How to show to show post list under the specific category name using jetengine query?
- How do I exclude a custom taxonomy from the post loop
- Is ACF being a honey trap? [closed]
- Order get_terms using a Custom Field
- Add custom taxonomy fields when creating a new taxonomy
- Filtering custom taxonomies
- Order get_terms() By Custom Field
- Using WordPress to make a “Product Search” type navigation drilldown
- How to modify the query in taxonomy-custom.php to sort term archives by a custom meta field?
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- Get value in custom field with taxonomy [closed]
- get_query_var(‘paged’) always returns empty
- Remove Category description textarea
- Custom metabox for menu administration page?
- How can I set a default listing order on the admin page for a custom taxonomy? (without plugins)
- Custom Fields and performance
- register_rest_field for custom taxonomy fields that are assosiated with custom post type
- search query within custom taxonomy term, post title and meta field
- Is it possible to sort the post based on a custom field?
- Showing posts by collection of specific terms and texonomy
- Custom taxonomy – custom sortable column
- How to display submenus on page based on referring top-level parent?
- Display Custom Taxonomy Terns ordered by meta_value
- Custom WP_Query breaks default behaviour of viewing right post associated with tax-term!
- Problem with query_posts for a custom taxonomy in theme options
- Custom Taxonomy terms with latest post ordered by date pagination issue
- Link to most recently created category of custom taxonomy in primary navigation menu
- How to display posts from a single category within a custom taxonomy
- Ordering Posts with Custom Taxonomy Terms Array
- Advanced Tax Query
- How get custom field from custom taxonomy?
- Automatically assign taxonomy term if custom meta value exists
- Sorting Posts Via Custom Taxonomy Values Using Checkboxes?
- How to show only one post for each categories of taxonomy of custom post that contains a specific custom field
- Last posts from custom taxonomy
- Display custom post types with custom date field value (before today) & order by custom date field
- Taxonomy.php issue with search and filters
- How to add custom field to custom taxonomy in 4.4
- how to search in custom fields & custom taxonomy for custom search
- Getting yoast title for custom taxonomy
- Outputting an array of term meta values in a custom WooCommerce tab?
- Storing data into custom taxonomies VS post custom fields (post meta)
- List the number of posts for each custom taxonomy and specific custom field value
- Solve product properties with custom taxonomies?
- Is it acceptable to build functionality into a theme built for a client? [closed]
- $wpdb query a post type within a specific taxonomy term while ordering posts by custom meta value?
- Custom fields to taxonomy
- Custom fields ‘for’ custom taxonomy?? Can someone explain why?
- cannot get multiple loops using tax_query
- Print terms with taxonomy and metabox value
- Styling Taxonomy Terms Individually
- Enable the admin to sort custom taxonomy
- Can I use a Custom Meta Value inside of ‘get_the_terms’?
- Alter post order on taxonomy template
- orderby meta_value breaks taxonomy term archives
- query_posts and custom taxonomy posts order
- How to add contents of a custom field to a taxonomy term list?
- How can I hide admin columns showing extra custom taxonomy fields?
- Conditional display for custom fields/taxonomy
- How do I modify the “Insert Media” lightbox in the admin to only show media items from a category?
- quey posts from different categories with taxonomy
- I am trying to display information from a custom table from my wordpress users pages
- Sort order by slug for looped child terms of custom taxonomy
- Save custom taxonomy data in different table not in wp_options for my own plugin
- How to create a dependent drop-down and options in dropdown must be manageable from admin panel
- How to separate posts in loop?
- Show all taxonomy’s terms’ posts having another taxonomy’s term in common
- Search Tool only refreshes Page without showing results
- Display value of custom field of custom taxonomy in single post?
- Removing “s” from search with custom parameters
- How to fetch the data from Advanced Custom post when we search specific keyword or field name related to the post?
- Change order of posts
- How do I display a custom field from a custom taxonomy in single.php?
- group posts by taxonomy terms
- Multi-select field for Taxonomy can’t save the value
- List Posts For Terms Of A Custom Taxonomy For Any Post Type
- query posts custom field calculation value
- WordPress implode & wp_insert_post question
- WP Query – Is this correct?
- how to store values in database at hierarchical view
- Best structure for entering recipes in a WordPress theme?
- WP REST API – get custom taxonomies based on terms & filter
- Weekdays as terms – How to order taxonomy terms by ID in admin panel?
- Using WP_Query and Query_post for the loop?
- Copy/clone/associate Custom field to Custom Taxonomy
- How to write sql query to get the posts from a custom taxonomy term name
- saving meta/custom field to tag
- How to support fifteen thousand terms in WordPress?
- one post per term taxonomy
- Different Taxonomy Values for Each Post
- Filter through custom taxonomy with an array of taxonomy IDs
- What’s the best way to add taxonomy’s image in 2017?
- How to add a date creation field when a custom taxonomy relationship is created?
- Why can’t I access Custom Taxonomy metadata?
- SQL / wp_update_post: change post custom field to CPT post taxonomy
- Order taxonomy terms wordpress
- Filter by Custom Taxonomy AND Custom Field
- Insert taxonomy slug into loop class