WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Possible to change "location" taxonomy? (4 posts)

  1. theoutdoors
    Member
    Posted 2 years ago #

    I already have a "location" taxonomy that's heavily tied into other areas, and it conflicts with Event Manager's location taxonomy. When submitting an event, I see the following error in Chrome:

    HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

    If I disable the EM location option things work great.

    Question is, can I change the default "location" taxonomy that EM uses?

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 2 years ago #

    Hi,

    you might want to turn-on WP_DEBUG to see if there's any other error and also you can check php file em-posts.php.

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    there is a way, but it's untested, and not really recommended. However, it was done for these extreme cases.

    In your wp-config.php file, you can change the post types by defining them as on em-posts.php so for locations, you'd add e.g.

    define('EM_POST_TYPE_LOCATION','em-location');

    note that you can't change this back and forth, it's permanent for that blog, unless you go in to your DB and change all the post_type values in wp_posts

  4. theoutdoors
    Member
    Posted 2 years ago #

    Thanks for your help. I set the following in wp-config and I'm good to go.

    define('EM_POST_TYPE_LOCATION','event-locations');
    define('EM_POST_TYPE_LOCATION_SLUG','events/locations');

    Just a reminder to anyone else trying this...don't forget to re-save the Permalink settings after defining these settings.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.