Thread Starter
vloot
(@vloot)
Thank you so much for this reply and fix!!
Thread Starter
vloot
(@vloot)
Thank you very much for your quick help and for solving the issue! It works like a charm now 🙂
Hi John,
Thanks for your code. This was exactly what I was looking for!
I encountered a small error: the booked class was not working for July and I discovered that you need to pass the month number without a leading zero: using date(‘n’) instead of date(‘m’)
So the line added should be:
$start_month = 1;
if($current_year == $year){
$start_month = date('n');
}
Thanks again for sharing your code.