Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Small adjustment from alonso's code posted in
- * http://tri.be/support/forums/topic/title-again/
- * (adds pagination to category pages)
- */
- function my_custom_titles($title) {
- // Find the page number (if the results are paginated/we've passed page 1
- global $paged;
- $pagenum = (is_int($paged) and $paged > 1) ? (string) $paged : '';
- if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page
- return 'Events Calendar';
- } elseif( tribe_is_month() && is_tax() ) { // Calendar Category Pages
- return 'Events Calendar' . ' » ' . single_term_title('', false) . " (page $paged)";
- } elseif( tribe_is_event() && !tribe_is_day() && !is_single() ) { // The Main Events List
- return single_term_title('', false) . 'Termine';
- } elseif( tribe_is_venue() ) { // Single Venues
- return $title;
- } else {
- return $title;
- }
- }
- add_filter('wpseo_title','my_custom_titles');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement