Codex tools: Log in
Contents |
This function adds an already registered Taxonomies to an already registered Post Types. It takes in a name, an object name that it affects. It returns true on success.
<?php register_taxonomy_for_object_type( $taxonomy, $object_type ); ?>
<?php register_taxonomy_for_object_type( 'category', 'posts' ); ?>
register_taxonomy_for_object_type() is located in wp-includes/taxonomy.php.