remove link on categories

Home Forums Calendar Products Events Calendar PRO remove link on categories

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #768254
    tornadoo
    Participant

    Hey,
    I just want to disable the link on the categories if I use the output of this function.
    I need the pure text without any formatting.
    Can someone help?

    $eventcategory=tribe_get_event_categories( null, array(
    ‘echo’ => ‘0’,
    ‘before’ => ”,
    ‘sep’ => ‘ ‘,
    ‘after’ => ”,
    ‘label’ => ”,
    ‘label_before’ => ”,
    ‘label_after’ => ”,
    ‘wrap_before’ => ”,
    ‘wrap_after’ => ”
    ));

    #769382
    Brian
    Member

    Hello, I can help you get started with this.

    Instead of using tribe_get_event_categories() it maybe easier to use WordPress’s wp_get_post_terms() function.

    I came up with the start of some coding that worked for me to show the event categories. You may have to change it around yourself to display exactly how you would like.

    https://gist.github.com/jesseeproductions/ab83edf2c65da0d15f89

    You can please that in the \modules\meta\details.php file you move to your theme by following the Themer’s guide.

    https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/

    Let me know if that helps.

    Thanks

    #769479
    tornadoo
    Participant

    Ok. Solved. I even removed the list tags and echos and could include that into an inline template tag for event-rocket.
    Very many thanks, Brian!

    #769492
    Brian
    Member

    Great, glad it helps, I am going to go ahead and close this ticket, but if you need any other on something else please post a new ticket.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘remove link on categories’ is closed to new replies.