Tagged: the events calendar
I’m wondering what is the latest state of the solution for the problem described here for the Replete template.
As the poster in the topic liked above says, what happens is the title of the page picks up the title of the first event instead of “Events,” “Upcoming Events,” etc. Thus: http://centerforworldmusic.org/events/
The folks over at theeventscalendar.com referred me to the solution linked above in this thread.
My concern is that (1) this solution is for the Replete template and (2) I don’t find a single line in the “page.php” reading “echo avia_title();”
That instruction does occur, but it’s part of a longer line, and I’m not at all sure how to replace it.
Hi,
Can you please create us a WordPress administrator account? post it here as a private reply.
Regards,
Josue
Hey!
Check it now, i modified your “Fix for Event Titles Becocming Page Titles on The Events Manager Pro” snippet to:
add_filter('avf_title_args', function($args) {
if(tribe_is_past() || tribe_is_upcoming() && !is_tax()){
$args['title'] = "CWM Events";
$args['link'] = "";
}
return $args;
}, 10, 1);
Best regards,
Josue
Many thanks, Josue. Activating the above code in my Code Snippets plugin, as you did, accomplished the necessary. Brilliant!
You are welcome, glad to help :)
Regards,
Josue
Ooops, sorry. I spoke a tad too soon. The code works on the list view, but not on the calendar view, which behaves as before. Is a further tweak needed?
http://centerforworldmusic.org/events/month/
Yeah, check it now:
add_filter('avf_title_args', function($args) {
if(tribe_is_past() || tribe_is_month() || tribe_is_upcoming() && !is_tax()){
$args['title'] = "CWM Events";
$args['link'] = "";
}
return $args;
}, 10, 1);
Regards,
Josue