WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
regional events (2 posts)

  1. deltatango
    Member
    Posted 1 year ago #

    I have a question about this plug in. I am building a website that will have regional events.

    I am trying to add an existing custom taxonomy called "Regions" to the event post type, but the register_taxonomy function is not adding it.

    How would I go about adding an already existing custom taxonomy to the event post type?

    Thank you!

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. jonahcoyote
    Member
    Posted 1 year ago #

    Hi deltatango,

    You can use this function in your theme's functions.php file to add taxonomy support to events:

    /*-----------------------------------------------------------------------------------*/
    /* Register Taxes for Objects
    /*-----------------------------------------------------------------------------------*/
    function run_init() {
    
      register_taxonomy_for_object_type('your_taxonomy_name', 'tribe_events');
    
    }
    add_action('init','run_init');

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.