Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Just to make things clearer, here’s the code listed above:

    ` <h3><?php $display_date = date(‘F j, Y’, strtotime(get_post_meta($post->ID,
    ‘event_begin’, true)));
    if ( $display_date == ‘01.01.1970’): { the_time(‘F j, Y’); } else: { echo
    $display_date; } endif; ?></h3>`

    I just need to add start time and end time e.g. June 29, 2017 from 10:00 am to 3:00 pm

    Many thanks again

    • This reply was modified 8 years, 10 months ago by adrianwest.

    Hi
    This post has been extremely helpful and the plugin is awesome!

    I need a little more help though. In addition to the event date instead of published date, I’d like to have the start and end times of the event as well.

    Could you extremely clever guys help me out with a line or two of code I can use to add to the date and achieve this?

    I’m very new to php and unable to write the code myself but can find my way around and put it in the right place.

    Many thanks

Viewing 2 replies - 1 through 2 (of 2 total)