• Resolved loopfreak

    (@loopfreak)


    Hi,
    i am looking for am solution to get the category_name of an event and show it in a horizontal list.
    I tried to overwrite the list-widget.php with following code:
    <?php echo tribe_get_event_categories( get_the_id() ); ?>
    and it works in the sidebar widget.

    But how can i achieve to get the category_name as value by calling a shortcode?

    Thank you for your help.
    Michael

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Brian Hogg

    (@brianhogg)

    Hi Michael,

    You could use the pro version of The Events Calendar Shortcode and create a custom template:

    https://eventcalendarnewsletter.com/events-calendar-shortcode-pro-options/#custom

    Then you’d just do [ecn-list-events design="custom"] wherever you need and it’ll output the events in your chosen format.

    Of course if you have the pro version of The Events Calendar, there may be a way to do it with their shortcode – you can contact the modern tribe support forum to ask.

    Hope that helps, if not let me know!

    Thread Starter loopfreak

    (@loopfreak)

    Hi Brian.
    Thank you for your answer.
    The support of modern tribe told me, that The Events Calender PRO couldn’t provide the category_name for adding a list via shortcode.

    And you are sure that the values of category_names getting returned in the List?

    This would be great.

    Thread Starter loopfreak

    (@loopfreak)

    ahhh you’re the author 🙂
    okay, purchased…..

    Thank you for your quick help.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Show Event Category in list / shortcode’ is closed to new replies.