-
Stranger
Posts: 2
Topics: 4
Hi, great plugin. Finally someone made a real event calendar for WP.
Except for one thing. When you’re looking at the calendar grid view, the name of the month in the dropdown is off by one month. So if I’m looking at my website’s calendar right now (January 2012) it shows December 2011 in the drop-down. Not to worry, here is a fix. Just change this bit of code in /public/template-tags/calendar.php, around line 144:
function tribe_month_year_dropdowns( $prefix = ” ) {
global $wp_query;if ( isset ( $wp_query->query_vars['eventDate'] ) ) {
// change this line: $date = $wp_query->query_vars['eventDate'];
$date = $wp_query->query_vars['eventDate'] . “-01″;} else {
$date = date_i18n( TribeDateUtils::DBDATEFORMAT );
}
$monthOptions = TribeEventsViewHelpers::getMonthOptions( $date );
$yearOptions = TribeEventsViewHelpers::getYearOptions( $date );
include(TribeEvents::instance()->pluginPath.’admin-views/datepicker.php’);
} -
Gatekeeper
Posts: 3563
Topics: 62
Answers: 393This suggestion here is awesome, Steve – thank you. We’ve had a few users report this issue so far, and though I’ve been unable to recreate it on my end, your fix will definitely be of value to others who come with the same problem down the road. Thanks again.
-
Stranger
Posts: 4
Steve, I just found this solution – thank you for taking the time to share your fix. Unfortunately, I can’t find the /public/template-tags/calendar.php you are referring to. Can you give me bit more direction? It this in the Events Calendar Pro plug-in folder? Thanks again!
-
Gatekeeper
Posts: 3563
Topics: 62
Answers: 393Hey Emmett. That file would actually be in the folder for the free The Events Calendar; since PRO is an add-on that extends the functionality of free, a lot of the core stuff is in that free Events Calendar folder. Hope this helps – let me know if you’ve still got questions on it.
-
Gatekeeper
Posts: 3563
Topics: 62
Answers: 393Happy to help (for what little I did). Steve’s the man.
Dave, let us know if you need anything else in the future!
-
Gatekeeper
Posts: 3563
Topics: 62
Answers: 393Great to hear that did it, David – if for some reason the problem arises again let me know and we’ll try and assist as best we can.
-
Gatekeeper
Posts: 3563
Topics: 62
Answers: 393Heck yeah. Thanks for confirming that did the trick, Carlos.
-
Tribal Help
Posts: 3458
Answers: 648Glad to hear Spoa, let us know if there’s anything else we can help out with here.
Date selector on grid calendar view is off by a month
Viewing 14 posts - 1 through 14 (of 14 total)
