• Resolved pipspeak

    (@pipspeak)


    I’m trying to modify an Events Calendar template using conditionals so certain elements only appear on specific theme pages but the WordPress conditionals (like “is_front_page”) do not work, probably because the plugin files are loaded before $wp_query fires. Are there any other conditional methods to use within the plugin that return true or false for specific pages in a theme? Or is there a workable method to use WordPress conditionals? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Victor Zarranz

    (@vicskf)

    Hey [user],

    Thanks for using The Events Calendar!

    I think you might find the tribe_is_event() helper function useful to accomplish such customization. You can also see other helper functions available at /wp-content/plugins/the-events-calendar/src/functions/

    I hope that helps! ?? Let us know if you have any other questions or issues!

    Best,
    Victor

    Plugin Contributor Victor Zarranz

    (@vicskf)

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using WordPress is_front_page conditional’ is closed to new replies.