You can – but when viewing posts/events in a category/tag term the events be treated as posts (sorted by post date, will not show event dates/venue etc, unless you alter you theme to do otherwise).
You can the default post categories/tags taxonomy with the following (in your own plug-in or functions.php)
register_taxonomy_for_object_type('post_tag', 'event');
register_taxonomy_for_object_type('category', 'event');
Hi
I would like to have the same functionality.
I have tried the code above but nothing happend.
What i need is to see list of my default kategories in EVENT edit page instead of event categories.
So I can choose.
Thanks.
Hi javllar,
You need to wrap it inside a callback hook onto the init
action.
Untested….
add_action('init','javllar_add_cats_to_event');
function javllar_add_cats_to_event(){
register_taxonomy_for_object_type('post_tag', 'event');
register_taxonomy_for_object_type('category', 'event');
}
Note that this just adds the (default) category metabox to the event admin page. The calendar etc still uses event categories. There isn’t a way round this without creating further problems. As mentioned above viewing a (default) category will treat your events like posts. Again, there isn’t an easy way of resolving this.
Ok it works fine.
Thanks a lot.
I just need to find a way , how to tell wordpress to show events in categories.