I have tracked down the issue. It appears the Events Manager calendar code has logic in it to figure out the number of weeks which should be drawn and depending on the # number of days in the month decides on a 5×7 or 6×7 grid for the calender. Therefore the EM code will process either 35 or 42 days worth of events. Problem is the fullcalendar plugin always displays 6 weeks but the last week is being left off of the data feed coming from the Events Manager Ajax call.
As an example look at the month of October 2013 on the EM demo site
https://demo.wp-events-plugin.com/calendar/
The following change to em-calendar.php fixes this issue.
5.5.2 – original
112 if($current_num > 35){
113 $num_weeks = 6;
114 $outset = (42 - $current_num);
115 } elseif($current_num < 35){
116 $num_weeks = 5;
117 $outset = (35 - $current_num);
118 }
119 if($current_num == 35){
120 $num_weeks = 5;
121 $outset = 0;
122 }
5.5.2 – fixed
112 if($current_num > 35){
113 $num_weeks = 6;
114 $outset = (42 - $current_num);
115 } elseif($current_num < 35){
116 $num_weeks = 6;
117 $outset = (42 - $current_num);
118 }
119 if($current_num == 42){
120 $num_weeks = 6;
121 $outset = 0;
122 }
This is just a heads up. I haven’t tested how this code change affects other parts of EM yet. Please don’t use this is your production environments.
[Moderator Note: Please ensure that you are embedding links correctly in your posts.]