Hi there,
So I think I am understand this correctly, you are trying to set up an Event as a post, and you are asking if you need to use post the Post categories and the Event categories?
If you create an event as a post, it will use the same post categories, vs creating the event as normal as an event, that uses a different set of categories.
If I am not understanding this correctly, please let me know and I can continue to assist!
Apologies for my poorly worded question! I am looking to have both posts and TEC Events show as results when a user queries a particular category.
I managed to add the following code to functions.php to associate post type tribe_events with the main site Categories:
<pre><code><?php
/**
* Plugin Name: Tribe Event Categories
* Description: Add Categories to Tribe Events post type.
*/
add_filter(
'tribe_events_register_event_type_args',
function( $a ) {
$a['taxonomies'][] = 'category';
return $a;
}
);
This does allow me to add categories to events, however when I go to the category listing page (for example https://mysite.test/category/subjects/genealogy/), posts show up but tribe_events don’t.
Thanks very much for your reply, Truman – apologies for the mickey mouse question, but what else am I missing?
Hi Carlos,
So I was actually wrong on my initial reply, Events and Posts already share the same categories, and there is a setting under Events > Settings > General called “Include events in main blog loop” to include events in the main loop for posts. This should fix the issue where the events are not showing up when you search a category.
Thank you! I need to find time to read the documentation lol. Just have about 30 plates in the air on this website at the moment!!
Carlos, you are most welcome! I totally understand!
Thanks again for your help – closing the thread.