term_group
seemed to have never been fully developed together with the alias_of
parameter. What the exact indended use is (or was), I cannot say for sure. I would just rather avoid the use of those two parameters.
Regarding your issue of creating a hierarchical tree, wp_list_categories()
immediately jumps to mind (remember this works for custom taxonomies as well). You can either use wp_list_categories()
as-is and manipulate the output through the parameters availble, or you can look at walk_category_tree()
which wp_list_categories()
uses to build its tree. walk_category_tree()
also use the Walker_Category
class, so you can use this to exact fine tune what you need
There is also the option of writing your own recursive function to create your tree
Related Posts:
- Order get_terms() By Custom Field
- Sorting Attributes order when using get_the_terms
- Allow user to set custom order to a list of custom taxonomies?
- wp_list_categories() by alphabet? (ex. only category titles that start with “A”) [closed]
- view subcategories order by id
- Ordering terms whilst in loop
- Order get_terms using a Custom Field
- get_terms vs. get_categories: does it matter?
- Woocommerce get category image full size
- How to Change the Categories Order in the Admin Dashboard?
- Control term order on a per-post basis
- Fixing category count
- get_the_terms in descending alphabetical order
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- wp_list_categories: order by term order?
- Elegant way to add parent categories?
- Order by first name
- Display all posts in category, with specific tag posts at top
- Send an email when custom post type category is changed
- Excluding posts from a category but only if they’re not in multiple categories
- How to alter query order direction using $query->set(‘order’, ‘ASC’); inside a pre_get_posts filter?
- Update term count using a callback function
- Display Categories Assigned to a WooCommerce Product
- Does WordPress Offer a Way to Find All of the Categories that Don’t Have Children?
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Removed slug from CPT, now How/where do I hook the filter to the taxonomy term archive pages link?
- Taxonomy list. Order by a specific custom post type count
- Action hooks returning old category instead of new category
- How Do I Order Posts by Modified Date? [duplicate]
- Display empty taxonomy terms with get_terms()
- How can I set custom order use this function
- Problems with function on function.php
- Change default ordering of taxonomy terms – pre_get_terms
- get_terms orderby numeric
- display taxonomy slug from term ID
- Custom Post Type Archive Page Filtering
- All, published and pending order
- How can i insert term in a specific language of Polylang?
- Show Primary Category first when I display post categories
- get_adjacent_post() returning weird results
- Order char by post title
- Is There a Difference Between Taxonomies and Categories?
- next_post_link and previous_post_link order not working properly
- Custom taxonomy/category order
- query pages by a childs publish date
- Get posts from specific taxonomy term
- Getting category URL with hyphens, not spaces
- Remove a category from a post when saving a new post
- Get parent category id from child category page for custom taxonomy
- Featured-Content/Featured Posts With Random Order
- Ordering posts by title containing numbers
- How to change the order of the subcategory and category in a post?
- How to Link to Most Recent Custom Post of Same Term
- Parent category / child category posts
- How to create a array that contains all of the children slugs of a specific parent category
- Getting Category Children
- Showing HTML if Post is In Certain Taxonomy Term
- Order terms by count – missing terms
- How to add a date creation field when a custom taxonomy relationship is created?
- Natural sort / ordering wp_dropdown_categories
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- Add properties to term object
- Order posts by taxonomy terms
- Last post sorting get_categories
- List taxonomy terms assigned to a post in hierarchical view
- Sort categories by custom field in WordPress admin
- Sort by DESC works, ASC doesn’t?
- How to display custom taxonomy term specific post?
- How to get immediate children of a ‘term’ parent id through ‘get_terms’?
- List of terms in alphabetical order under the respective initial letter and within columns
- Create category after theme setup and modify the default one
- Order custom taxonomy hierarchy
- how to show all categories by get_terms
- Add subcategories posts to the counts column at the admin’s categories list
- How to sort custom post’s category by id from the theme’s function.php?
- Categories and Tags Conflict after Woocommerce Installation
- Get category of a taxonomy for a queries object in a loop
- Is there any WordPress way to get all categories for some selected posts?
- Order terms by creation date
- WordPress using get_term to retreive slug not working as expected
- Display List of Categories Within a Custom Taxonomy
- Creating a post that contains a list of other posts like a table of contents
- Sorting terms individually for each post
- List Terms by category
- Changing posts order on a page
- How to add a new child category via an SQL statement?
- Why is my post categories not displaying?
- Find And Add Category to Posts
- single post navigation order (NOT chronological)
- Delete Term via edit-tags.php
- Problem importing categories and sub-categories
- Use get variable when rewritten url in wordpress
- Random order of posts on each request
- How can I make have_posts() return posts ordered DESC by id?
- Add post order like page order
- How to make WordPress orderby work with post_excerpt column?
- Woocommerce – Display product category of product in Orders page
- Issue on Listing Sub Product Categories In Woocommerce
- Sort wordpress posts by facebook likes [closed]
- hide_empty property not working when using get_terms