Month View – can’t retrieve category

Home Forums Calendar Products Events Calendar PRO Month View – can’t retrieve category

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1045721
    A. Alzner
    Guest

    Hi community,

    i’m working with the events calendar pro right now. I’m working for a company and i’m assigned to customize it, but i don’t have any informations about the user account so i’m posting here.

    At the moment i’m working at the file ‘the-events-calendar/src/views/month/single-event.php’ and i’m trying to retrieve the category for this post.

    i’ve tried to use: tribe_get_event_cat_ids, tribe_get_event_cat_slugs with the $post parameter (global param at the beginning of the file) and tribe_meta_event_category_name.

    But I always got an empty Array or an empty string. I even analyzed the data-tribejson and found out that the category-id or category is missing there too. Example: “categoryClasses”:”tribe-events-category- post-11179 tribe_events type-tribe_events status-publish hentry tribe-events-venue-11167 tribe-events-last”.

    Is it possible that there is a flaw for the category in this plugin?

    Best regards,

    mr. A

    #1046080
    Geoff
    Member

    Hey there!

    I’m happy to help you as best I can but do want to note that technical support in these forums does require access to the account your license key is related to. If you are unable to locate the user info, please do reach out on our Contact page so we can help you access it.

    That said, our documentation is the best place place to start for something like this. You might want to give the tribe_meta_event_category_name() function a shot for listing the current event categories. Otherwise, you should be able to use the default WordPress wp_get_terms() function since it would accomplish the same.

    Cheers!
    Geoff

    #1049800
    Geoff
    Member

    Hey there, I see my last reply was marked as the correct answer–thanks for following up! I’ll go ahead and close this thread but please feel free to open a new one if any other questions pop up and we’d be happy to help. 🙂

    Cheers!
    Geoff

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Month View – can’t retrieve category’ is closed to new replies.