[Plugin: WP Calendar] Not Showing end date or times -hyphen problem
-
I really love that WP Calendar will automatically not show an end date for one day events, and not show times for all day events. However, this leaves me with hyphen problems. For instance, let’s say this is the template for an event listing:
<p><strong><a href="{event_url}" title="{event_subject}">{event_subject}</a></strong><br /> Date(s): {event_startdate} - {event_enddate}<br /> Time(s): {event_starttime} - {event_endtime}<br /> Location: {event_location}</p>
Which outputs something like this:
My Event
Date(s): April 1, 2011 – April 2, 2011
Time(s): 8:00am – 8:00pm
Location: Conference CenterNow, let’s say that event is just one day. It outputs like this:
My Event
Date(s): April 1, 2011 –
Time(s): 8:00am – 8:00pm
Location: Conference CenterOr, let’s say it’s one day and all day, we get this:
My Event
Date(s): April 1, 2011 –
Time(s): 8:00am –
Location: Conference CenterAny ideas how to solve this? Is there a place in the PHP files were I can concatenate a hyphen to the end time/end date?
Thanks,
Kim
- The topic ‘[Plugin: WP Calendar] Not Showing end date or times -hyphen problem’ is closed to new replies.