Content of the page

PHP Class for creating interface for assigning term_group in any WordPress taxonomy

Content of the article

Sometimes when developing something on WordPress its necessary to use field term_group from  the data base table wp_term_relationships. For example sorting taxonomies terms by this field. But how to assign term_group value to each term when there is no such interface by default? Described below PHP class will help you to resolve this task:


Using of this class is simple. After code of initialization taxonomies you should add next piece of code:

clients and skills here is slugs of taxonomies.

Leave a Reply

Be the First to Comment!

Notify of

wpDiscuz