I want to write some code into one of my template file that says if the category id (for the Events Calendar Pro) is 51 (for example), then I want to echo some code. Is this possible to incorporate into the plugin? I know it’s fairly simple in WordPress’s infrastructure, but I can’t seem to get WordPress’s “in_category();” function to work with this. Any help is appreciated. Thanks!
Barry-
My taxonomy is: tribe_events_cat
My category id for the calendar category is: 287
My slug is: opc-2nd-executive
How do those elements fit into your code?
* Made a typo there – the slug is irrelevant here, what I meant to say is the taxonomy is already in the code. It’s represented by TribeEvents::TAXONOMY.
Hi Andrew, Kindra: I’m guessing you don’t need any further support here and will close this thread. Please shout back before the end of the week if you need additional help.
Author
Posts
Viewing 6 posts - 1 through 6 (of 6 total)
The topic ‘Conditional Categories’ is closed to new replies.