Forums

The Events Calendar
[resolved] Conditional tag for events (5 posts)

  1. aeboi80
    Member
    Posted 8 months ago #

    I am trying to do something

    if( is_event() ){
    echo '<h1>Activities</h1>';
    }

    Similar to how you could use any of the other worpdress conditional tags. Like

    if( is_blog() ){
    echo '<h1>Our Blog</h1>';
    }

    I found this thread, but I am not sure what to make of it. I am trying to do this outside of the loop.
    http://wordpress.org/support/topic/plugin-the-events-calendar-events-page-title?replies=22

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 8 months ago #

    Hey there aeboi80. Thanks for your post, and for using the plugin. This is a good question and should be relatively straightforward, if I'm understanding it correctly. While the specifics are outside my area of expertise I have asked a dev-minded member of the team to take a look, and you should have someone chiming in to point you in the right direction on Monday.

  3. jonahcoyote
    Member
    Plugin Author

    Posted 7 months ago #

    Hi aeboi80,

    Here are some basic conditional wrappers that should help in most scenarios using our plugin: https://gist.github.com/2415009

    Let me know if you need anything else!

    - Jonah

  4. jonahcoyote
    Member
    Plugin Author

    Posted 7 months ago #

    Hey aeboi80,

    Did that work for you or do you need any additional information?

    - Jonah

  5. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 7 months ago #

    Wanted to follow-up once more here, aeboi80, before we close out the thread here. Do you need anything else from us?

Reply

You must log in to post.

About this Plugin

About this Topic