• Currently I have the shortcode set to list the start and the end date of a multi-day event, as seen below:
    [eo_events] <a href="%event_url%">%event_title%</a> on %start{jS M Y}{ g:i:a}% - %end{jS M Y}{ g:i:a}%[/eo_events]

    Is it possible to only show a singular date for events that are only one day?

    For example, I want it to look like:
    MRS Fall – November 27 to November 29, 2012
    AVS – October 31, 2012

    Currently, the plugin will show the date twice, even though its the same day. (AVS – October 31, 2012 to October 31, 2012)
    Thanks!

    http://ww.wp.xz.cn/extend/plugins/event-organiser/

Viewing 1 replies (of 1 total)
  • Unfortunately not yet. This would require some conditional statements, or otherwise a ‘clever’ date formatting function that interprets the format and displays it appropriately (I have sketched some ideas for this).

    Depending on how you are using the shortcode, it might be more appropriate to edit the template files so that it produces the list and use functions like eo_is_all_day() or check if the start and end date are the same, and format appropriately. You can see the available functions here.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Event Organiser] Event shortcode different depending on event length’ is closed to new replies.