Category conditional statement help needed

Home Forums Calendar Products Events Calendar PRO Category conditional statement help needed

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #965666
    Dolores Stafford
    Participant

    I’ve been charged with updating an old WP site which used version 2 of Event Calendar. Most of the ECP templates in the Theme were customized. Many are not working.

    I need to check category ids and do something different or each condition. The old code is shown here . and no longer works. Searched documentation and i thried

    <?php
    if (has_term( ‘exhibitions’, ‘tribe_events_cat’ ) ) {
    echo ‘It works’;
    };
    ?>

    That returned nothing. Can you suggest a statement to use? Thanks

    #965850
    Brian
    Member

    Hi,

    Thanks for using our plugins.

    I can help out here.

    We do have this list of updated conditionals:

    https://gist.github.com/jo-snips/2415009

    And you maybe to use is_tax() to target a specific event category:

    https://codex.wordpress.org/Function_Reference/is_tax

    Let me know if that is what you are looking for.

    Thanks

    #976176
    Brian
    Member

    Since there is has not been any activity on this thread for over 2 weeks so I am now closing it. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Category conditional statement help needed’ is closed to new replies.