List info based on event category

Home Forums Calendar Products Events Calendar PRO List info based on event category

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #26144
    Ken
    Participant

    I have 2 categories and on the list.php page I want venue information to be visible for 1 category and not visible for the other.


    if ( tribe_meta_event_category_name()=='My Category') : ;
    //do something
    endif;

    This doesn’t seem to work properly for the events in the specific category. Am i using the tag incorrectly or the wrong tag?

    #26148
    Jonah
    Participant

    Hey Ken,

    You’ll want to use has_term() instead: http://codex.wordpress.org/Function_Reference/has_term

    if( has_term( 'My Category', 'tribe_events_cat' ) ) {
    // do something
    }

    – Jonah

    #26149
    Ken
    Participant

    Thanks again for coming to the rescue Jonah!

    #26151
    Jonah
    Participant

    You’re welcome Ken, glad I could help!

    – Jonah

    #977907
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘List info based on event category’ is closed to new replies.