Show start and end time

Home Forums Calendar Products Events Calendar PRO Show start and end time

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #13419
    Dale-Anthony
    Participant

    Hey guys,
    I’m working with the events templates for my theme, just wondering if there’s a way to separate out the time from the date and only show the time if it isn’t an all day, or multiple day event?

    #13447
    Rob
    Member

    Hi Dale-Anthony. We should be able to point you in the right direction on this, though I’m unaware of how to do so. Let’s get Jonah to chime in.

    #13476
    Jonah
    Participant

    Hey Dale-Anthony,

    Yeah you can do this by using the functions tribe_get_all_day() & tribe_is_multiday() to check if the events are in fact all day or multiday and then use the tribe_get_start_date() tag and pass in time arguments like so:


    echo tribe_get_start_date( $post->ID, true, 'g:sa' );

    That should show 9:06pm for example.

    #13584
    Dale-Anthony
    Participant

    Ace, just got this working, thanks for the help 🙂

    #13588
    Jonah
    Participant

    Glad you got it working, let us know if you need anything else with this.

    #975322
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Show start and end time’ is closed to new replies.