Category Conditional Stament

Home Forums Calendar Products Events Calendar PRO Category Conditional Stament

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #1395459
    George
    Participant

    Hey Tony,

    Thanks for your patience with this issue.

    First, just to set your expectations here, we cannot help at all with custom coding, and all custom coding endeavors are ones you have to fully take on yourself. You can read more about this in our support policy here.

    However, with that being said, I think the has_term() suggestion Cliff made may actually work here.

    I think you should try using this, though:
    Tribe__Events__Main::TAXONOMY

    Instead of this:
    $tecmain::TAXONOMY

    Make that seemingly-simple change and let us know if anything improves!

    Cheers,
    George

    PS

    Just to be absolutely clear, an example of that change in practice would be like this:


    if ( is_tax( Tribe__Events__Main::TAXONOMY, 22 ) ) {
    // Stuff...
    } elseif ( is_tax( Tribe__Events__Main::TAXONOMY, 23 ) ) {
    // Other stuff...and so on...
    }

    #1410965
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 2 posts - 16 through 17 (of 17 total)
  • The topic ‘Category Conditional Stament’ is closed to new replies.