Title: query by category
Last modified: August 30, 2016

---

# query by category

 *  Resolved [tolisp](https://wordpress.org/support/users/tolisp/)
 * (@tolisp)
 * [11 years ago](https://wordpress.org/support/topic/query-by-category/)
 * Hi everyone
 * i added the main wordpress categories as categories in the tribe_events content
   type and now i want to add it in the query_posts arguments to filter by category(
   not the tribe events categories), however the ‘cat’=>$category_id does not filter
   the results. Any ideas?
 * Thanks
    Tolis
 * [https://wordpress.org/plugins/the-events-calendar/](https://wordpress.org/plugins/the-events-calendar/)

Viewing 1 replies (of 1 total)

 *  [Brook](https://wordpress.org/support/users/brook-tribe/)
 * (@brook-tribe)
 * [11 years ago](https://wordpress.org/support/topic/query-by-category/#post-6304853)
 * Howdy tolisp,
 * How did you add the main WordPress categories? Did you do it from WP Admin > 
   Events > Categories? If so, then you actually created new categories in a separate
   WP Taxonomy, but used the same name as the existing one.
 * You would need to merge WP Taxonomies somehow in order to do what you are trying
   to accomplish. I am not sure where to begin with that, it would be a pretty involved
   change and would require directly modifying the plugin in a number of areas, 
   everywhere it references the taxonomy ‘tribe_events_cat’. And that’s just one
   of the hurdles you are likely to face.
 * I just googled it and see that there are some plugins which try to allow you 
   to merge taxonomies. But, we definitely have not tested with them. You might 
   give a tool or script like that a whirl, but definitely back up first. I would
   not be surprised if it backfires.
 * Cheers!
    – Brook

Viewing 1 replies (of 1 total)

The topic ‘query by category’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Brook](https://wordpress.org/support/users/brook-tribe/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/query-by-category/#post-6304853)
 * Status: resolved