EVENTS CATEGORY ON THE HOME IN WP QUERY

Home Forums Calendar Products Events Calendar PRO EVENTS CATEGORY ON THE HOME IN WP QUERY

  • This topic has 4 replies, 2 voices, and was last updated 9 years ago by neyret.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1269950
    neyret
    Participant

    Hi, I bought The Events Calendar Pro, it’s a great plugin but a little bit hard to use for me.
    We can easily put events in the loop. But events categories don’t appear. No problem with tags (the_tags).
    I work with Genesis framework.
    I try to call terms of a taxonomy associated to custom post type, no result. I try get_the_terms, no result and other method.
    So I need help. Finally I find a snippet to do categories with title using add_filter and it work.
    When I use the same code not on the_title filter but with add_action, the code don’t work.
    I need events categories but not in the title.
    Someone can help me ?
    Thank you very much

    #1270762
    Barry
    Member

    Hi @neyret,

    Thanks for contacting us (though I’m sorry to hear you’ve experienced some difficulties).

    Just to be sure I’m understanding correctly, you are using the include events in main blog loop setting here and your goal is simply to list any event categories? Or, alternatively, are you using some custom code to add events to the main loop?

    Whichever approach you are using, the tribe_get_event_categories() function is likely to be your friend and can be used to fetch or display a list of event categories.

    #1272580
    neyret
    Participant

    Thank you, after a big big search, I use tribe_get_event_taxonomy because I want just the terms.

    echo tribe_get_event_taxonomy( get_the_ID(), array(
    ‘before’ => ‘<br> <span>’,
    ‘sep’ => ‘ / ‘,
    ‘after’ => ‘</span>’
    ) );

    #1272667
    Barry
    Member

    Excellent (and thank you for sharing your solution – could definitely be useful for others out there) 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘EVENTS CATEGORY ON THE HOME IN WP QUERY’ is closed to new replies.