By adding ‘orderby’ => ‘term_order’, line solved this issue.
$terms = get_terms( array(
'taxonomy' => 'cities',
'include' => $cities,
'orderby' => 'term_order',
'order' => 'ASC',
'hide_empty' => 0
) );
Related Posts:
- Exclude specific slug in ‘get_terms’
- Custom order of terms for custom taxonomy in admin and website
- Is there a way to disable a term rather than deleting it?
- Modify Term Update Redirection
- Return only the custom sub-term for custom post type, do not echo term-parent
- Check if current term is a child of another term
- get_terms() doesn’t return empty terms even though hide_empty is false
- Formating the_terms() function output
- Custom Taxonomy Only Showing Top Level Terms in Admin?
- Sort posts by number of matched terms
- Get current term’s ID
- Is it possible to get a Previous/Next Taxonomy term archive URL?
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- How to set hierarchical terms to a post using wp_set_object_terms
- Echo taxonomy term meta on author.php
- Hierarchical display of custom taxonomy
- How to display term description in empty terms archive?
- Checking if a Page has an Associated Term?
- What are terms and taxonomy, how they related to post and how these three are stored in database?
- Get terms ordered by post date
- Allow only 1 instance of each term in each custom taxonomy
- get_the_terms() to show all custom taxonomies
- How can I get WP to build a feed based on multiple taxonomy terms
- get_terms: determine if taxonomy term has children
- display taxonomy slug from term ID
- get_term_children doesn’t return an array of children terms
- Get Current Custom Taxonomy ID by Post ID
- Changing stylesheet depending on custom taxonomy terms
- Taxonomy archive showing no results
- Use get_the_terms to list subcategories of custom taxonomy
- get_term and get_term_by return null or false, even though term exists
- Display Taxonomy Terms in an option tag with value being the slug
- Changing taxonomy term by slug (wp_update_term)
- Displaying Custom Taxonomy without a hyperlink
- Get only immediate children (and not grandchildren) of a hierarchical custom taxonomy term
- How to group all terms children’s in custom taxonomy?
- Show template part if part of term
- one post per term taxonomy
- How can I change the output display of my pagination?
- Corrupted nav-menu?
- Get name of taxonomies of current page
- List Top 5 taxonomy terms based on number of post
- Order taxonomy terms wordpress
- Unable to get the Parent Custom Taxonomy Terms
- How to get the term description in a taxonomy term archive query?
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- Use wp_list_categories to list parent categories from actual term
- Include get_term_link inside search
- Trash Bin for Categories?
- Set two terms for a post when they differ only by an accent
- Retrieve the child terms by having the parent’s information
- add pagination in wordpress page template
- Cloning product not copying custom taxonomies
- How to create a non removable taxonomy term?
- Filter “get_terms” query
- generate random slug when adding taxonomy
- Get Highest and Lowest get_term_meta() value from Taxonomy Term
- How to get a terms and posts associated with another term?
- Displaying subcategories and then posts in taxonomy template
- Why get_terms() behaves strangely when being called in admin (for use in meta box)?
- set_object_terms for custom taxonomy in custom post type – not working
- Group & Sort Taxonomy terms by letter – Is there a better way?
- qtranslate-x problem with custom term description
- Resize $term attachment using url
- switch statement for taxonomy content
- Display taxonomy term slugs
- Taxonomy term breadcrumb; how?
- Exclude 2 in 3 terms of A Taxonomy from all Archives
- get_terms() – unexpected ‘=>’ (T_DOUBLE_ARROW) error
- Display woocommerce product_cat child terms with thumbnails
- How to delete unused terms?
- How do I check if a post has a term with a particular ancestor/parent?
- get_the_term_list without links in 3.1
- get_term_children for immediate children only (not grandchildren)
- How to limit the number of terms (terms acts like categories)
- Creating a non-removable taxonomy term
- Get terms from multiple taxonomies
- How can I set a default listing order on the admin page for a custom taxonomy? (without plugins)
- get taxonomy terms for parent and child
- Separator for multiple terms
- Get multiple term objects by ids
- Echo custom taxonomy term name
- Why does WP rename similar “term name”-slugs in separate taxonomies?
- Change permalink of post if it belongs to custom taxonomy
- Set custom post type terms by id without knowing taxonomy
- How to determine the depth of a term in a custom taxonomy?
- How to obtain the link/URL to the feed of a custom taxonomy?
- Term count by user
- How to add contents of a custom field to a taxonomy term list?
- How to add images to taxonomy terms? [duplicate]
- Echo custom taxonomy slug
- Remove a href from this code
- How to get attached image to taxonomy..?
- How to get list of only custom taxonomies?
- Amend taxonomy to search in wordpress admin
- Display term picture of each post in a loop
- Get post terms with hierarchical relationships
- Display associated taxonomy child name on single CPT page
- Hide empty categories on widget