WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. aeboi80
    Member
    Posted 1 year 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 1 year 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
    Posted 1 year 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
    Posted 1 year ago #

    Hey aeboi80,

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

    - Jonah

  5. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

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

  6. dansz
    Member
    Posted 11 months ago #

    I found this extremely helpful. Perfect for page specific title tags.

    Great plugin.

  7. Barry Hughes
    Member
    Plugin Author

    Posted 11 months ago #

    Thanks for the feedback dansz :-)

    If you have a moment and are happy to leave a plugin review that would be awesome!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic