• Resolved sunkast

    (@sunkast)


    I’m using this events plugin called Events Manager. It’s does everything that I need except for one thing. Displaying the event end date only if it is not the same as the event start date. There is a short code that simply displays the event end date. But I don’t want the event end date to display if it’s the same as the event start date. IE: if the event start date is Feb 19, and the event end date is also Feb 19, only display Feb 19.

    As it is now, using the short code to display the event start and end date would result in it display Feb 19 – Feb 19, which is not what I want. I only want the event end date to display if the event is more than one day. IE: Feb 19 – Feb 20. And just Feb 19, if the event start and end date are the same day.

    Does anyone know of a way to do this that also works in the widgetized sidebar?

Viewing 1 replies (of 1 total)
  • Thread Starter sunkast

    (@sunkast)

    Wouldn’t ya know it. Finally found out how to do this. The documentation for the plugin is poor. Doesn’t explain anything about showing the event end date. I finally did see at the very bottom of the change log for the plugin documentation on a short code that does just what I want. I couldn’t find this information any where.

    Added an end date option always on for multi-day events. Added a new placeholder format to deal with the end date. You can now wrap dates in #{} or #@{} . The values inside will have a format of date(). For example #{Y-m-d} #@_{ \u\n\t\i\l Y-m-d} will show as “2009-03-23 until 2009-03-28” (only for end dates with no recurrence) or just “2009-03-23” for normal events.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Events Manager] How to display the event end date?’ is closed to new replies.