List Widget: Add Event Categories to Display Options

Home Forums Calendar Products Events Calendar PRO List Widget: Add Event Categories to Display Options

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1218473
    sfzc
    Participant

    When using the List widget is there a way to add event categories to the options in the display setting?

    #1219155
    Nico
    Member

    Hi there,

    Glad to help you out with this issue as well ๐Ÿ™‚

    While it’s not possible to add this via widget settings, you can do so by pasting this snippet in your theme’s (or child theme’s) functions.php file:

    /* Tribe, output event category in list widget */
    function tribe_add_category_to_list_wdiget ( ) {
    echo get_the_term_list( get_the_ID(), Tribe__Events__Main::TAXONOMY );
    }
    add_action ( 'tribe_events_list_widget_after_the_event_title', 'tribe_add_category_to_list_wdiget');

    Please let me know if that helps,
    Best,
    Nico

    #1223138
    sfzc
    Participant

    This reply is private.

    • This reply was modified 9 years, 3 months ago by sfzc.
    #1223143
    sfzc
    Participant

    Hi Nico,

    The snippet you provided is working fine.

    Thanks for your help. Closing this ticket.

    Greg

    • This reply was modified 9 years, 3 months ago by sfzc.
    #1223178
    Nico
    Member

    Thanks for the heads-up! Stoked to hear Greg ๐Ÿ™‚

    Iโ€™ll go ahead and close out this thread, but if you need help with anything else please donโ€™t hesitate to create a new one and we will be happy to assist you.

    Best,
    Nico

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘List Widget: Add Event Categories to Display Options’ is closed to new replies.