Add custom post type categories
-
Hi,
I have a plugin that uses a custom post type called ‘event’.
I want to add custom event categories so users can list events by categorie.So I should use register_taxonomy for this.
This default code creates a custom TAG page:
function my_plugin_taxonomy() { register_taxonomy( 'my_custom_taxonomy', 'event' ); } add_action( 'init', 'my_plugin_taxonomy' );
How can I create a custom category page in stead?
Note: I know how to create a default category page (via register_post_type) but I don’t want to use the default (post) categories.
Guido
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Add custom post type categories’ is closed to new replies.