• Resolved jackopio

    (@jackopio)


    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' . ' &raquo; ' . 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

    https://wordpress.org/plugins/the-events-calendar/

Viewing 1 replies (of 1 total)
  • Plugin Contributor leahkoerper

    (@leahkoerper)

    Hi jackopio,

    As outlined in our forum guidelines, we aren’t able to help with these kinds of customizations. But we do have some handy resources that might be helpful for you:

    Themer’s Guide – provides an overview of how to customize the plugin’s frontend appearance.
    Tutorials – useful tips and tricks for changing how the plugin looks and behaves.
    Technical Docs – provides an overview of the classes and functions in each plugin

    Good luck, and thanks for using The Events Calendar!

    ~Leah

Viewing 1 replies (of 1 total)
  • The topic ‘display events month and year in tag’ is closed to new replies.