Locations

Home Forums Calendar Products Community Events Locations

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1082922
    Ludo Geukers
    Participant

    Hello forummembers:-)

    Question. Is it possible to add a catergorie and maybe even a tag to the locations database in the community events?
    It gives me more options to work with all the beautiful data that we are collecting.

    #1083148
    George
    Participant

    Hey @zeeheldennieuws,

    Thanks for reaching out!

    To be clear, are you asking for how to make the default Venues view which looks like this:

    Have “event categories” and “tags” like this:

    If so, then yes, you can do this by adding the following snippet to your theme’s functions.php file:


    add_action( 'admin_init', 'add_taxonomies_to_venue_post_type' );

    function add_taxonomies_to_venue_post_type() {
    register_taxonomy_for_object_type( 'tribe_events_cat', 'tribe_venue' );
    register_taxonomy_for_object_type( 'post_tag', 'tribe_venue' );
    }

    This is using the default WordPress function register_taxonomy_for_object_type(), which you can read more about here → http://codex.wordpress.org/Function_Reference/register_taxonomy_for_object_type

    I hope this helps!

    — George

    #1088511
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Locations’ is closed to new replies.