thoward
El Presidente
Super Volunteer
Member Likes (0)
Is it possible to add categories to the Events pages? I'm adding this to an existing theme with a calendar of events but it needs to pull from a category. Would CustomPress help with this or should I take a more direct approach and create a custom function to add this in?
thanks!
Tom
Responses (9)
Member (joined September 2010) Likes (0)
I decided to take the forceful route and updated my functions.php file to include:
register_taxonomy_for_object_type('category', 'incsub_event');
This works for what I intended. Doesn't work on my site still but not because I couldn't add the Category field :)
DEV Diva (joined February 2012) Likes (0)
Hi thoward
Greetings from the WPMU DEV Support Team and thank you for being a member!
Great feature request. The Events and Bookings Plugin doesn't currently have the option of assigning categories to specific events. I will have a word with the Developer to see what is the best way of adding this manually and get back to you.
For sure this should be on the list of features to add to the next version.
I will revert back to you ASAP.
Have a good day!
GinaB
Member (joined December 2009) Likes (0)
+1 for this
Member (joined August 2010) Likes (0)
Yes +1 for this!
Member (joined March 2012) Likes (0)
I was actually surprised to find this wasn't already included. I'll have to stick with Events Calendar Pro, until this feature is added to Events +.
DEV Diva (joined February 2012) Likes (0)
I have to support this :) +1 from me!
Member (joined September 2010) Likes (0)
@hbaker - if this is all that's keeping you from using Events + then just add this line to your functions.php file:
function add_taxonomy_boxes() {
register_taxonomy_for_object_type('category', 'incsub_event');
register_taxonomy_for_object_type('post_tag', 'incsub_event');
}
add_action('init', 'add_taxonomy_boxes');
You can add taxonomy boxes to other post types if you want as well. I'd certainly like to see this as a feature in the future but it's super easy to add it yourself as well. Enjoy!
Tom
DEV Diva (joined February 2012) Likes (0)
Hi Tom @thoward
Thank you for that workaround! Excellent piece of code. I'm bookmarking this one ;D
Have a good day!
Member (joined March 2012) Likes (0)
Thanks for pointing that out, thoward!
WordPress Questions?
We've got answers!
Find out more »