Get event types

Home Forums Calendar Products Events Calendar PRO Get event types

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #291875
    hodephinitely
    Participant

    Maybe I’m missing something, but I can’t seem to just get a list/array of the currently displaying event’s categories (when viewing a single event). Is there one?

    #305685
    Casey
    Participant

    hodephinitely,
    Thanks for getting in touch! You should be able to use the tribe_get_event_taxonomy() function to return a unordered list of Categories for the event. If you want an array of the Event Categories, then you’d need to use the wp_get_post_terms() function and use ‘tribe_events_cat’ as the taxonomy parameter like this:


    $event_cat_array = wp_get_post_terms( get_the_ID(), 'tribe_events_cat' );

    Hopefully that should point you in the right direction, but let me know if I can help further. Thanks! 🙂

    -Casey-

    #466524
    Casey
    Participant

    I just wanted to follow up and see if you’re all set here or if you still have further questions. Just let me know if you have further questions or if I should go ahead and close out this thread. Thanks! 🙂

    -Casey-

    #666359
    Casey
    Participant

    Since I haven’t heard back from you here, I’m going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! 🙂

    -Casey-

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Get event types’ is closed to new replies.