Title: [Events Manager] Using post categories
Last modified: August 20, 2016

---

# [Events Manager] Using post categories

 *  Resolved [jnegron101](https://wordpress.org/support/users/jnegron101/)
 * (@jnegron101)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/events-manager-using-post-categories/)
 * Is it possible to just use the regular post categories for EM and not event categories?
 * [http://wordpress.org/extend/plugins/events-manager/](http://wordpress.org/extend/plugins/events-manager/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/events-manager-using-post-categories/#post-2859097)
 * hi,
 * you can try this snippet and paste it to your theme functions.php
 *     ```
       add_action('init', 'demo_add_default_boxes');
       function demo_add_default_boxes()
       {
       register_taxonomy_for_object_type('category', 'event');
       register_taxonomy_for_object_type('category', 'event-recurring');
       }
       ```
   
 *  Thread Starter [jnegron101](https://wordpress.org/support/users/jnegron101/)
 * (@jnegron101)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/events-manager-using-post-categories/#post-2859113)
 * Excellent! Thanks Agelonwl
 *  [ecn](https://wordpress.org/support/users/ecn/)
 * (@ecn)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/events-manager-using-post-categories/#post-2859140)
 * That didn’t work for me. I’m using P2 theme. I would like the events to appear
   as posts as well as in their normal displays.
 *  [ecn](https://wordpress.org/support/users/ecn/)
 * (@ecn)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/events-manager-using-post-categories/#post-2859141)
 * I should clarify, the selection appears as an option when writing the post. The
   event lists under the event category (regular taxonomy category that I created)
   but it doesn’t display.
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/events-manager-using-post-categories/#post-2859142)
 * events aren’t posts, they are custom posts. You can use standard WP hooks/filters
   to get custom posts to appear on your homepage, e.g. [http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page](http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page)
 *  [Adam](https://wordpress.org/support/users/robinsontb21/)
 * (@robinsontb21)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/events-manager-using-post-categories/#post-2859161)
 * I looked at that code and placed in my functions php what would use for a word
   to show custom post type for events?
 *  [Balders](https://wordpress.org/support/users/balders/)
 * (@balders)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/events-manager-using-post-categories/#post-2859234)
 * Sorry for opening this thread again, but this is something which really haunts
   me.
 * What I’ve done so far:
 * I put this code in the functions.php:
 *     ```
       add_action('init', 'my_em_taxonomies');
       function my_em_taxonomies() {
           register_taxonomy_for_object_type('post_tag', EM_POST_TYPE_EVENT);
           register_taxonomy_for_object_type('category', EM_POST_TYPE_EVENT);
       }
       ```
   
 * I put this filter after it:
 *     ```
       add_filter( 'pre_get_posts', 'my_get_posts' );
   
       function my_get_posts( $query ) {
   
       	if ( is_home() && $query->is_main_query() )
       		$query->set( 'post_type', array( 'post', 'event' ) );
   
       	return $query;
       }
       ```
   
 * But the event still doesn’t show up on the homepage. Where did I go wrong? Or
   what did I miss?
 * Thanks for helping. Problem is my site basically exists only of events. At the
   monent I have to copy every event to show up as post which is very time consuming.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘[Events Manager] Using post categories’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [event-manager](https://wordpress.org/support/topic-tag/event-manager/)
 * [taxonomy](https://wordpress.org/support/topic-tag/taxonomy/)

 * 7 replies
 * 6 participants
 * Last reply from: [Balders](https://wordpress.org/support/users/balders/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/events-manager-using-post-categories/#post-2859234)
 * Status: resolved