fenoco

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Sort events by published date on custom query. #764542
    fenoco
    Participant

    Thank you very much Josh, that did the job 🙂

    in reply to: Event category classes in Events List Widget #57796
    fenoco
    Participant

    Actually this is the code:
    $terms = get_the_terms( $post->ID, ‘tribe_events_cat’ );
    $term = array_pop($terms);

    Then you can echo $term->slug; wherever you need.

    in reply to: Remove Venue Link #57794
    fenoco
    Participant

    Great thread, thanks for the info!

    I managed to remove the link from the organizer too, but was unable to do the same for the category link. Any idea on how to do this?

    I’ve tried using:
    remove_filter( ‘tribe_meta_event_category_name’, array(‘Tribe_Register_Meta’, ‘event_category’), 10, 2);

    But had no luck.

    Thanks for the help!

    in reply to: Event category classes in Events List Widget #56069
    fenoco
    Participant

    hmm… The code came up all wrong. This is it:

    ID, ‘tribe_events_cat’ );
    $term = array_pop($terms);
    /* foreach ($terms as $elterm) { echo $elterm->slug.’ ‘ ; } */
    ?>
    <li class="slug; ?> cf”>

    in reply to: Event category classes in Events List Widget #56067
    fenoco
    Participant

    Hi Reid! Thanks for your comment, and your answer. We were aware of the override system, and we are using it. It’s great that you thought of that.

    We actually figured something out after creating the discussion so I’ll post it here for reference. We ended up doing this:

    ID, 'tribe_events_cat' );
    $term = array_pop($terms);
    /* foreach ($terms as $elterm) { echo $elterm->slug.' ' ; } */
    ?>
    <li class="slug; ?> cf"> Your event goes here.

    Works wonders. Thanks again!

Viewing 5 posts - 1 through 5 (of 5 total)