Title: Location categories
Last modified: August 20, 2016

---

# Location categories

 *  Resolved [cgrabe](https://wordpress.org/support/users/cgrabe/)
 * (@cgrabe)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/location-categories/)
 * I know there are event categories, is there a way to have location categories
   as well. Part of my site is a directory and I would like to be able to search
   and filter the locations by category. If not, is there a way search the #_LATT{}
   fields?
 * Thanks
 * [http://wordpress.org/extend/plugins/events-manager/](http://wordpress.org/extend/plugins/events-manager/)

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

 *  [darya_meshkova](https://wordpress.org/support/users/darya_meshkova/)
 * (@darya_meshkova)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/location-categories/#post-3157952)
 * And is it possible to realize adding the locations in the main category of your
   blog? Or something to add the ability to add a space and the classification of
   places on категориям.Например: the category “Theaters”, and in it all the theaters
   of the city.
    thank you!
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/location-categories/#post-3157977)
 * Yes, you can add any taxonomy to Events or Locations. Which one will determine
   how to go about it.
 * This tutorial explains it well – [http://jeffri.net/2010/07/some-useful-tips-for-wordpress-custom-post-type-and-taxonomy/](http://jeffri.net/2010/07/some-useful-tips-for-wordpress-custom-post-type-and-taxonomy/)
 * e.g. to add event categories to locations, add this to your theme functions.php
   file
 * `register_taxonomy_for_object_type('event-category', 'location');`
 * normal category
 * `register_taxonomy_for_object_type('category', 'location');`
 * To search, currently EM doesn’t offer this out the box with an easy way but e.
   g. using WP_Query you can do a search by custom field, which is how #_LATT and#
   _ATT properties are stored.
 *  [darya_meshkova](https://wordpress.org/support/users/darya_meshkova/)
 * (@darya_meshkova)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/location-categories/#post-3157992)
 * Thanks
 *  [darya_meshkova](https://wordpress.org/support/users/darya_meshkova/)
 * (@darya_meshkova)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/location-categories/#post-3158007)
 * Hello! Add a category for the location turned out, but how do I display all the
   places on the site or of all the places in a certain category – can not.
    Tell
   me how can I do it?
 * Thank you!
 * P.S.I’m sorry, but know English bad.
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/location-categories/#post-3158012)
 * we don’t have a specific search filter for this, you’d have to use WP_Query or
   add your own scripts to create your own filter.
 * We have tutorials for the latter here (using alternate method) – [http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/](http://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/)
 * We do this for our categories around line 338 of classes/em-object.php

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

The topic ‘Location categories’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [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/)

 * 5 replies
 * 3 participants
 * Last reply from: [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/location-categories/#post-3158012)
 * Status: resolved