• The term_group field is notoriously under documented (wasn’t even in the first taxonony proposal https://www.nabble.com/Taxonomy-Schema-Proposal-td10011364.html )

    I could think of many uses for this field, including a plugin I’m currently coding, which need to distinguish between two ‘types’ of categories ( and where a ‘categories custom field plugin’ would be a little heavy )

    But there is no way to query categories on this field !
    I search wp-includes/taxonomy.php for a way to add a where clause on that, but the only mention of term_group is to order the query by term_group

    Any thoughts on how term_group could be used ?

Viewing 1 replies (of 1 total)
  • I could see term_group being used to group terms together. For example, if you have the tags Apple, Banana, and Orange, you could put them in a “Fruit Group”

    This would be helpful if you want a hierarchy of tags to allow users to browse through high-level tags (“Food”) before getting to more specific tags (“Granny Smith Apple”)

    /sam

Viewing 1 replies (of 1 total)
  • The topic ‘wp_terms term_group : what for ?’ is closed to new replies.