Hi, I’m trying to use the event list widget to show the date of the first and last Occurrence. However, when I use the shortcode %schedule_end% it just outputs today’s date.
I have a show that is on for two hours each evening from 26 Feb > 2nd March so I have set a Start date of: 26-02-2013
End date of: 02-03-2013
Occurrence daily until 02-01-2013
But today (22nd Feb) the widget is outputting
26 Feb > 22 Feb 2013
Is this a bug or am I doing something wrong?
You can see a dev version of the site here: http://malvern.phenixmedia.co.uk/
Look in the ‘Upcoming events’ for Joseph And The Amazing Technicolor Dreamcoat. It says: 26 February 2013 > 22 February 2013 but if you click on the event you can see it is set to end on the 2nd March.
Many thanks.
Rob Mackley
Hi Rob,
There is a bug with both %schedule_end%
and %schedule_last%
tags. I’ve opened a ticket, with a description of the bug and a potential (untested) fix here. I’ll be waiting for my laptop to be repaired before releasing 1.7.4 but this will be part of it.
Thanks for reporting it!
Stephen Harris
Thanks for posting the fix to this. Please could you let me know where to add the fix code as detailed here: https://github.com/stephenharris/Event-Organiser/issues/48
Many thanks.
Rob Mackley
Sorry stephenharris
I have just seen your link to the code:
https://github.com/stephenharris/Event-Organiser/blob/1.7.3/classes/class-eventorganiser-shortcodes.php#L215
I’ve added your fix to class-eventorganiser-shortcodes.php and apart from a missing : after case ‘schedule_last’ this fix works perfectly.
Thank you so much.
Rob.
Rob Mackley