- This topic has 2 replies, 2 voices, and was last updated 8 years, 10 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › How can I only show event's start-date if it's different than the end-date?
Tagged: event, formatting, list, time
Right now, I’m using PHP time format characters to display the start date and the end date of the event:
#F #j – #@F #@j, #@Y
This returns something like this:
June 16 – June 18, 2016
However for events that are only one day long, I would like to hide the start-date so it would return:
June 18, 2016
Instead of
June 18 – June 18, 2016
Is this possible?
See conditional tags : http://www.e-dynamics.be/wordpress/?cat=24
This is exactly what I was looking for! Thank you very much.
– E