Hello:
I’m trying to only show the start time of an event. I have the event date in a separate section based on my design. I was trying to use the function below, but it isn’t working.
php echo tribe_get_start_date($post->ID, true, ‘ ‘);
Anyone have any advice on how to only show the start time as well as am/pm, and nothing else?
Thanks for your help snorton. My issue above is that I’m trying to only display the start time, and not display the date at all. I have the date displayed elsewhere using the php time info.
The above won’t display your event date. tribe_get_start_date is the template tag to call the start date & time of the event for $post (current post), false turns off the time of the event (because it would otherwise display mm-dd-yyyy @ 00:00 AM – 00:00 PM), and $format readjusts to simply whatever date/time format you specify. In my example, this tag will only echo your start time in the format you asked for. If you changed false to true then it would display the start time in the specified format but still add @ 00:00 AM – 00:00 PM to the echoed text.