Tagged: the events calendar
-
AuthorPosts
-
May 20, 2015 at 5:25 pm #447306
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.
May 22, 2015 at 7:01 pm #448550Hi,
Can you please create us a WordPress administrator account? post it here as a private reply.
Regards,
JosueMay 22, 2015 at 7:12 pm #448556This reply has been marked as private.May 22, 2015 at 7:39 pm #448567Hey!
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,
JosueMay 22, 2015 at 10:51 pm #448683Many thanks, Josue. Activating the above code in my Code Snippets plugin, as you did, accomplished the necessary. Brilliant!
May 22, 2015 at 10:54 pm #448686You are welcome, glad to help :)
Regards,
JosueMay 22, 2015 at 11:06 pm #448693Ooops, 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/May 22, 2015 at 11:26 pm #448704Yeah, 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 -
AuthorPosts
- You must be logged in to reply to this topic.
