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
- How to modify the query in taxonomy-custom.php to sort term archives by a custom meta field?
- get_query_var(‘paged’) always returns empty
- How can I set a default listing order on the admin page for a custom taxonomy? (without plugins)
- register_rest_field for custom taxonomy fields that are assosiated with custom post type
- 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?
- Custom WP_Query breaks default behaviour of viewing right post associated with tax-term!
- Custom Taxonomy terms with latest post ordered by date pagination issue
- How to display posts from a single category within a custom taxonomy
- How get custom field from custom taxonomy?
- 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
- 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?
- 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 ‘for’ custom taxonomy?? Can someone explain why?
- Print terms with taxonomy and metabox value
- Enable the admin to sort custom taxonomy
- Can I use a Custom Meta Value inside of ‘get_the_terms’?
- 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?
- 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?
- How do I display a custom field from a custom taxonomy in single.php?
- List Posts For Terms Of A Custom Taxonomy For Any Post Type
- WordPress implode & wp_insert_post question
- WP Query – Is this correct?
- Best structure for entering recipes in a WordPress theme?
- WP REST API – get custom taxonomies based on terms & filter
- 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
- How to support fifteen thousand terms in WordPress?
- one post per term taxonomy
- Different Taxonomy Values for Each Post
- 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
- Filter by Custom Taxonomy AND Custom Field
- Insert taxonomy slug into loop class
- Extra Meta Data for WordPress Multisite Taxonomy
- Taxonomy or Custom Field
- Using Custom Taxonomies to organise products – struggling to call a correct list
- How to use custom slug and custom templates for custom taxonomy?
- Custom field with terms from another taxonomy programmatically
- Random order not working correctly when using default loop + $query->set
- Convert post meta to custom taxonomy?
- Count tags for current post and save into custom meta field (and update it on post edit)
- Pre_get_post custom taxonomy combined with custom fields?
- Adding a checkbox field to a (custom) taxonomy
- Is it possible to sort the post based on a custom field?
- Ignore punctuation marks in taxonomy order by name
- What’s the most efficient way to get two queries based on an if statement?
- Reset custom taxonomy meta data after saving
- Orderby taxonomy term id using get_posts not working
- How to add meta fields to custom taxonomy add/edit page?
- sort Posts by custom user filed
- Change order custom taxonomy
- Sorting terms individually for each post
- query_posts with sorting on a custom datestamp
- Order posts with custom taxonomy array
- Register custom taxonomy from a Advenced custom field option page
- Sorting Custom Taxonomy in ASC/DESC order?
- Use custom field as tag slug
- How can I show custom field according to taxonomy?
- Retrieve name or slug from get_objects_in_term
- Custom Fields link to other pages, not search
- Taxonomy Extra Meta [duplicate]
- Can you orderby slug in a taxonomy archive page using WP_Query?
- Any way to make custom taxonomy field searchable?
- Advanced WordPress search form based on custom taxonomy and custom meta value
- query posts returns 10 records
- More than one Hierarchical Taxonomy and SEO
- Getting taxonomies specific to categories
- Save selected terms in order of custom taxonomy in post