Add Event's Categories to single event in loop

Home Forums Calendar Products Events Calendar PRO Add Event's Categories to single event in loop

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1222010
    Adage
    Participant

    Hello,
    I’ve found this function :
    <?php
    echo tribe_get_event_categories(
    get_the_id(), array(
    'before' => '',
    'sep' => ', ',
    'after' => '',
    'label' => null, // An appropriate plural/singular label will be provided
    'label_before' => '<dt>',
    'label_after' => '</dt>',
    'wrap_before' => '<dd class="tribe-events-event-categories">',
    'wrap_after' => '</dd>',
    )
    );
    ?>

    But it loads a title “Event categories :” before the list…
    How could I load only the categories itselves (with links) ?
    Thank you.

    #1222877
    Josh
    Participant

    Hey Adage,

    Thanks for reaching out to us!

    If you change the “‘label’ => null,” line to “‘label’ => ””, it should remove the default label that is getting provided there.

    Let me know if this helps.

    Thanks!

    #1235454
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Add Event's Categories to single event in loop’ is closed to new replies.