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
- Is There a Difference Between Taxonomies and Categories?
- Sort on meta value but include posts that don’t have one
- Using Orderby and meta_value_num to order numbers first then strings
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- multiple orderby in pre_get_posts action
- Order get_terms using a Custom Field
- get_terms vs. get_categories: does it matter?
- Woocommerce get category image full size
- Different post sort order within different categories
- How to Change the Categories Order in the Admin Dashboard?
- Control term order on a per-post basis
- MySQL Query to Retrieve Category from wp_posts
- Fixing category count
- How can I get category ID by category name?
- get_the_terms in descending alphabetical order
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- get_terms name__like list categories according to letter
- next and previous post link ordered alphabetically
- wp_list_categories: order by term order?
- Elegant way to add parent categories?
- How can I select a primary category?
- Sort posts by tags in category pages
- Order posts by meta_value even if meta_key is not filled
- How to sort posts by last name (2nd word) on ONE category only?
- Order by first name
- Programmatically create product category and add thumbnail in woocommerce
- Display all posts in category, with specific tag posts at top
- How to order the get_categories result
- Query posts from current year
- How can I custom order the results from wp_list_categories?
- Send an email when custom post type category is changed
- How to Make a Category Always Selected?
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- I want to order categories based upon the latest post time
- Excluding posts from a category but only if they’re not in multiple categories
- Glossary with Custom Post Type
- How to alter query order direction using $query->set(‘order’, ‘ASC’); inside a pre_get_posts filter?
- Update term count using a callback function
- the_tags() : display the tags by the order they are typed in in the backend, not alphabetically
- WordPress Ordering Problem. How to fix ordering 1-10-100 issue?
- Get terms that are associated with products from current category
- Display Custom Taxonomy Terns ordered by meta_value
- List taxonomy terms plus their latest post ordered by post date
- Custom Taxonomy terms with latest post ordered by date pagination issue
- List all categories but exclude current post category on single post page
- Display Categories Assigned to a WooCommerce Product
- Does WordPress Offer a Way to Find All of the Categories that Don’t Have Children?
- Order posts by category name
- 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
- Getting the sub category
- Ordering Posts with Custom Taxonomy Terms Array
- How to choose a sort order (for posts) per category? (ideally when creating a new category)
- Use get_term_children to get the sub category of a parent category for the current post
- How to order posts by meta value?
- Count argument in get_terms has no effect on ouput/doesn’t work
- Action hooks returning old category instead of new category
- Update wordpress post terms programatically
- How Do I Order Posts by Modified Date? [duplicate]
- Display empty taxonomy terms with get_terms()
- List all custom post type posts from a given category?
- How can I set custom order use this function
- Orderby Post Views
- Get a list of Terms for a specific category
- How to order posts (woocommerce products) alphabetically but ignore certain words, eg ‘The’ and ‘An’
- get_terms orderby name as numbers
- WP_Query order by date in meta_value
- get_terms won’t display product_cat or any other custom taxonomies when specified
- get / list categories and counts filtered by custom taxonomy term
- Problems with function on function.php
- How to get category image custom post type taxonomy in wordpress?
- When to use ‘get_category_by_path’ vs. ‘get_term_by’ to get category object from `get_query_var( ‘category_name’ )`?
- Category page only displaying the posts from a custom type
- Change default ordering of taxonomy terms – pre_get_terms
- Ordering terms before displaying posts
- How to order posts by alphabet with numbers at the end
- Display posts in alphabetical order for a particular category
- Limit Words in Category / Term Description – Admin Panel
- Difference between get_category, get_term_by and get_categories
- get_terms from registered taxonomies not working
- Best Plugin to Reorder Post Types
- Ordering system through WordPress
- List Terms in Category
- How do I get a list of all categories that a given user has written blog posts for?
- get_terms orderby numeric
- display taxonomy slug from term ID
- Custom order categories in admin dashboard
- Arrange posts by date in front page
- Set post categories to include parents when setting child category
- Order wordpress taxonomy parent terms by their children count
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- How to get data about category in category.php