display events month and year in tag
-
Hi there, to modify the events calendar title, I already used these code
<title><?php if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page echo 'Events Calendar'; } elseif( tribe_is_month() && is_tax() ) { // Calendar Category Pages echo 'Events Calendar' . ' » ' . single_term_title('', false); } elseif( tribe_is_event() && !tribe_is_day() && !is_single() ) { // The Main Events List echo 'Events List'; } elseif( tribe_is_event() && is_single() ) { // Single Events echo get_the_title(); } elseif( tribe_is_day() ) { // Single Event Days echo 'Events on: ' . date('F j, Y', strtotime($wp_query->query_vars['eventDate'])); } elseif( tribe_is_venue() ) { // Single Venues echo get_the_title(); } else { echo get_the_title(); } ?></title>
and it works, but how to add year and month of the events to the title ?
what’s the name of return function / variable for that ?maybe something like echo get_the_title().’ – ‘.tribe_get_month().’ – ‘.tribe_get_year(); but i can’t find the answer from searching on the internet.
thank you very much
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘display events month and year in tag’ is closed to new replies.