Skip to content

Instantly share code, notes, and snippets.

@jo-snips
Created March 15, 2012 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jo-snips/2045249 to your computer and use it in GitHub Desktop.
Save jo-snips/2045249 to your computer and use it in GitHub Desktop.
The Events Calendar: Alternate Page Title
<h2>
<?php
if(tribe_is_month()) {
echo 'Calendar Grid';
} else if(tribe_is_event() && !tribe_is_day() && !is_single()) {
echo 'Event List';
} else if(tribe_is_event() && !tribe_is_day() && is_single()) {
echo 'Single Event';
} else if(tribe_is_day()) {
echo 'Single Day';
} else {
the_title();
}
?>
</h2>
@jo-snips
Copy link
Author

Use in either page.php or ecp-page-template.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment