- This topic has 2 replies, 2 voices, and was last updated 3 years, 2 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 … › Search result – start time no longer displays
Tagged: search
Hi Franky
I have added the search facility to my search.php file
Up until recently, it worked fine. It still works, but no longer displays the event’s start time. This is the line I use
print "<b>Date:</b> ".$event['event_start_date']."";
Do you know of any reason why this would no longer display?
Thanks
Jamie
Indeed, I switched some time ago (that column no longer exists) but forgot this side-effect. I updated the FAQ concerning search pages. To show the start date you should now use:
eme_localized_date($event['event_start'])
eme_localized_date shows the date according to your WP preferences, but you can also use eme_localized_datetime or eme_localized_time (or just $event[‘event_start’] to have the untranslated version of the event start datetime).
Hi Franky
That’s great. Thanks for the help as always
Jamie