0

This question already has an answer here:

I want something like this to show up: Jan 29 Mon 2-9 pm

I can't use <?php echo $event->get_timespan_html(); ?> as it would display something like "July 13, 2013 @ 1:00 pm – 3:00 pm."

I also tried

<?php echo date_i18n( 'M', $timestamp, true ) ?>
<?php echo date_i18n( 'j', $timestamp, true ) ?>
<?php echo date_i18n( 'D', $timestamp, true ) ?>
<?php echo $event->get_start_time(); ?> – <?php echo $event->get_end_time(); ?>

but for some reason it only displays Jan 1 Thu 1:00 pm – 3:00 pm instead of the correct event information.

Help?

marked as duplicate by fuxia Jul 11 '13 at 7:12

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • How are you assigning $timestamp? – TheDeadMedic Jul 9 '13 at 7:43
  • Sorry I'm a php newbie so I'm not sure what you mean, heh. I just found this after Google search and can't find anything else. If you want, here's the link to the original Wordpress forum post that I found the code from wordpress.org/support/topic/… – anita Jul 9 '13 at 7:47
-2

Finally solved it!

Go here and skip to the answer. So happy the problem is solved :)

Not the answer you're looking for? Browse other questions tagged or ask your own question.