If you are trying to order your posts by taxonomy terms, it’s not technically possible in one query (since multiple terms can belong to multiple posts – which means that WordPress cannot support ‘orderby’ for taxonomies or terms because there are potentially more than one).
Your solution would be:
- Fetch a list of your (sub)terms and loop through them.
- In each term loop, run query_posts() to fetch only posts attached to the current term.
- In each term loop (after the query), create your content-output loop to display your posts.
Related Posts:
- Link to most recently created category of custom taxonomy in primary navigation menu
- Sorting Posts Via Custom Taxonomy Values Using Checkboxes?
- Alter post order on taxonomy template
- How do I exclude a custom taxonomy from the post loop
- Filtering custom taxonomies
- Using WordPress to make a “Product Search” type navigation drilldown
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- get_query_var(‘paged’) always returns empty
- Custom order of terms for custom taxonomy in admin and website
- How can I set a default listing order on the admin page for a custom taxonomy? (without plugins)
- search query within custom taxonomy term, post title and meta field
- Sort posts by number of matched terms
- Showing posts by collection of specific terms and texonomy
- Problem with query_posts for a custom taxonomy in theme options
- How to display posts from a single category within a custom taxonomy
- Advanced Tax Query
- Last posts from custom taxonomy
- Taxonomy.php issue with search and filters
- Sort custom taxonomy terms order by both count and name
- How to show the entries in a custom taxonomy by author?
- cannot get multiple loops using tax_query
- quey posts from different categories with taxonomy
- Show all taxonomy’s terms’ posts having another taxonomy’s term in common
- Sorting Custom Posts on Archive page with pagination
- WordPress Custom post query sorting does not work
- List Posts For Terms Of A Custom Taxonomy For Any Post Type
- Using WP_Query and Query_post for the loop?
- How to write sql query to get the posts from a custom taxonomy term name
- one post per term taxonomy
- Loop through custom taxanomy in post and display custom fields from posts
- Sort and paginate custom post taxonomies alphabetically
- Insert taxonomy slug into loop class
- Sort taxonomy page alphabetically by meta rather than default post date
- Using Custom Taxonomies to organise products – struggling to call a correct list
- Sorting the Loop by Taxonomy Value
- Group posts in a category based on tags in custom taxonomy
- Listing Cities A custom taxonmy by selection order
- WP Tax query & order by tax query not working
- Group & Sort Taxonomy terms by letter – Is there a better way?
- sort Posts by custom user filed
- Transfer taxonomy to custom field
- How do I query multiple specific posts from a custom taxonomy?
- Can you orderby slug in a taxonomy archive page using WP_Query?
- query posts returns 10 records
- Getting taxonomies specific to categories
- How much worse is querying custom fields compared to custom taxonomies, quantitatively
- Group custom taxonomies based on tags contained in their posts
- How to show to show post list under the specific category name using jetengine query?
- Custom taxonomy with custom meta value is not sorting correctly (query returns the same value for orderby regardless of sort column click)
- Tax query array terms display out of order
- Pagination with custom query (not using posts)
- Order posts with custom taxonomy array
- Remove taxonomy menu without removing the metabox?
- Custom taxonomy list in Worpdress
- Custom taxonomy displayed in search results
- How to perform a search inside a specific taxonomy category
- How to change taxonomy slug?
- Taxonomy to WordPress Permalinks of custom post type
- Register custom taxonomy from a Advenced custom field option page
- What’s the proper WordPress URL for the template of my custom taxonomy?
- Custom taxonomy page uses index.php
- Where is defined a custom register_taxonomy? [closed]
- get_terms returns array starting at 4
- Display custom post taxonomies
- Differentiate Parent & Child of Custom Taxonomy
- Listing all selected terms for custom taxonomies on a post
- Avoiding stripping of HTML in Custom Taxonomy Meta Field
- wp_query by last month + sort posts
- Taxonomy term breadcrumb; how?
- Determine if Term has Grandparent/Great-Grandparent
- Gravity prerender taxonomy [closed]
- Where to put code to get custom taxonomy term id?
- Trying to achieve row posts below category with multiple loops in custom tax
- If meta_key has value = 6 | Change the wp_posts.post_date to current date
- add custom fields in custom taxonomy meta box in wordpress-3.5.2
- How to permanently delete a taxonomy
- Sorting Custom Taxonomy in ASC/DESC order?
- Getting grandchildren of a post with a specified custom taxonomy?
- Taxonomy Parameters in WP Query to get posts from two different taxonomies
- Update fields with post object and custom tax with wp_insert_post
- Get one custom taxonomy category
- Use custom field as tag slug
- How To Display Selected Terms For Custom Taxonomy?
- Advanced Custom Fields: query posts filtered by multiple field values
- Custom taxonomy subcategories template page
- Insert term description programmatically into hierarchical custom taxonomy
- Adding a query var to taxonomy term archive – gets redirected to the other taxonomy archive page
- How can i set post_per_page in my taxonamy?
- How can I show custom field according to taxonomy?
- get multiple values from $_GET from multiple checkboxes
- Custom Taxonomy + JQuery Tabs
- displaying links if term is used
- WordPress doesn’t respect the template hierarchy?
- Retrieve name or slug from get_objects_in_term
- Exclude 2 in 3 terms of A Taxonomy from all Archives
- register and insert category manually
- WordPress show posts from children terms of a taxonomy term
- Multiple Taxonomy in URL/Query – No Custom Post Type
- How to include child terms within parent?
- Custom Taxonomy type in nav menu