Section taxonomy

WordPress: Add a Taxonomy Manually

Written by on 13/05/2014
Category:   Wordpress, Backoffice
Tags:   admin, taxonomy, wordpress
Example of manual addition of a taxonomy (without going through the configuration).To be placed in the functions.php file: /** * Manual add new Field to taxonomy or you can use plugin "taxonomy manager" * * BEGIN */ // A callback function to add a custom field to our "expertise" taxonomy function expertise_taxonomy_custom_fields($tag) { // Check for existing taxonomy meta for the term you're editing $t_id = $tag->term_id; // Get the ID of the term you're editing $term_meta = get_optio...