Events Made Easy Forums How do I … Search result – start time no longer displays

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #63167
    Anonymous
    Inactive

    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

    #63169
    Franky
    Keymaster

    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).

    #63170
    Anonymous
    Inactive

    Hi Franky

    That’s great. Thanks for the help as always

    Jamie

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top