Select events page in php conditional?
-
Hey, thanks for this awesome plugin. Rated five stars and well worth it!
I’m trying to put some footer stuff under the content of the events calendar pages to match the rest of my site. I got the job done on all of the single events pages by adding
<?php if ( is_singular( ‘tribe_events’ ) ) {
//some footer stuffto my theme’s page.php just before get_footer (thanks to this).
I can’t find a wordpress function that gets me onto the main events page to do the same thing. The Events Calendar’s /events/ page isn’t listed as a wordpress page so it’s hard to pinpoint how it’s treated and how to get ahold of it.
I tried is_page with the page title and page slug, didn’t work.
Any ideas? Thanks!
- The topic ‘Select events page in php conditional?’ is closed to new replies.