There is an unused column, term_order, in the wp_term_relationships table that you can use to assign a custom order to the terms within your taxonomy. The order is set at 0 by default and it will take a custom query to get the order back and another solution to set the order.
Example query:
function wpse_order_taxes() {
global $wpdb;
$results = $wpdb->get_results ( "SELECT * FROM $wpdb->terms t inner join $wpdb->term_taxonomy tt on t.term_id = tt.term_id WHERE taxonomy = 'category' ORDER BY term_order ASC LIMIT 0, 10" );
$categories = array();
foreach ( $results as $cat ) {
array_push( $categories, $cat->slug );
}
return $categories;
}
This would give you back an array of terms ordered by the custom order.
Related Posts:
- Different post sort order within different categories
- How to get order of posts?
- Sort posts by tags in category pages
- How to sort posts by last name (2nd word) on ONE category only?
- Display all posts in category, with specific tag posts at top
- wp_list_categories: get latest featured_image of category
- Exclude category by slug for for each loop
- Display page of custom posts?
- Sorting Woocommerce products with numeric titles [closed]
- How to choose a sort order (for posts) per category? (ideally when creating a new category)
- Showing current subcategory
- Sort Posts By Category?
- wordpress change the loop order by dynamic value
- How to order posts by meta_value created inside loop?
- How to get_posts where ‘menu_order’ is more than 0/zero?
- Why is my loop not dynamically grabbing the correct Category and displaying all categorized posts?
- Sort posts by most recently modified
- Show Primary Category first when I display post categories
- How to redefine the sorting of product categories by menu_order?
- Custom post type, organized by categories
- Publish Categories for a particular Author on a given Post
- WooCommerce – How to show specific category first-rest of products-specific category last
- Trying to sort and display categories(not posts) by custom field: ‘order’
- Sort results by groups of numbers and letters
- Custom taxonomy/category order
- wp e-commerce group product by category [closed]
- How to check if a product is purchased within the last 365 days before displaying something
- Sort posts by first letter in the title, not by first number
- Loop Problem: Displays same set of post for all categories
- Category ID returns as ‘0’?
- Three Column Loop
- Exclude category from get_the_category
- How to filter posts by category INSIDE the loop
- Display all categories as plain text
- Natural sort / ordering wp_dropdown_categories
- loop inside a loop : search for posts in the same category
- Ascending order has strange effects on wordpress loop
- Loop order issue with Ajax filter
- How can I order all subcategories alphabetical independent of the parent categories?
- Loop random posts and display odd and even based on two alternating meta values?
- How to sort (orderby) a query done by a template function before the ‘foreach’ loop?
- WordPress redundant posts based on meta field
- How to sort custom post’s category by id from the theme’s function.php?
- Display three sequential posts on each page load, without repeating previous
- Configure query with multiple categories in a custom order?
- Show all child categories associated to post ID within loop
- Sorting posts to make those with post thumbnail show up first
- Secondary loop cuts off at 10 posts?
- My custom query not detecting the correct category
- Show last post from multiple categories using wp_list_categories
- loop mix my child-category and parent-category
- WordPress Not Sorting By Custom Field
- How to use orderby on meta_value when using Pods custom database table storage
- How to sort posts alphabetically based on a specific parent category
- Get post content from outside the loop
- How to Change Loop to Order Posts by Views (using wp-postviews plugin)
- Is `query_posts` really slower than secondary query?
- Are there any scenarios where the query_posts may be used?
- Identify the page being shown while in The Loop
- How to find meta_values to call
- Sort category page with custom field
- Alternate loop output every three posts (within the same original loop)
- Previous and Next Post link doesn’t work
- Random post, page inside post loop problem
- Orderby Post Views
- single page site with subpages
- Different Queries Return Same Results [closed]
- wordpress simple loop, huge issues
- Pagination gives extra page with no results
- Displaying multiple loops based off of category
- Child_of not displaying all children posts.. via get_posts
- Query reset problem or flawed code to enable custom post type query
- Exclude posts from main loop based on meta value
- Blog page Server error 500 with stick post loop in query.php
- Show all posts using the template page and the loop?
- Exclude current post from loop
- 4 column-loop ordered alphabetically with entries grouped (and labeled) by their first letter
- Custom loop not working
- Escape current post from loop
- Why isn’t my multiple loops working?
- facebook like, tweet and google+1 buttons inside the loop on home, archive and search pages and missing facebook like buttons
- Loop Offset for tag based “Related Posts”
- How do I put my frontpage featured image in a page template for home.php?
- How to print redux gallery feilds id? [closed]
- Display post thumbnail for specific category outside the loop
- static page with multiple loops breaks post pagination
- Help with if and else statement
- How to list post as buch of category, and all of them
- Function the_posts_pagination() not compatible with WP_Query arguments
- Custom post type order by post_title
- is it bad to copy the loop for a template?
- I want to load post in bootstrap Modal dynamically
- Return only one post format in index.php [duplicate]
- How to display just video post format?
- How to execute custom loop before loop content?
- Best way to check if a post with specific meta exists
- Return only content in excerpt field in loop
- get_posts and wp_autop (remove filter)
- Trouble preventing duplicate posts between 2 loops on homepage
- Error in Wordprewss loop for page template [closed]