Formatted Event Date Shortcode not working

Home Forums Calendar Products Events Calendar PRO Formatted Event Date Shortcode not working

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1575812
    Robert
    Participant

    I’m trying to output an event’s date that spans multiple days to only show the year once. For instance November 18th, 2018 – November 20th.

    I came across the Formatted Event Date extensions: https://theeventscalendar.com/extensions/formatted-event-date-shortcode/

    And tried it exactly as shown, including the event id: [tribe_formatted_event_date id=7681 format=”F j, Y” timezone=”America/New_York”]

    And get the following message on the front end: There was an error with this event’s date information. (This message is only shown to Contributors and higher level users.).

    Is there another way to output the date as I want? I see in the settings you can change the date format however it ends up like this: November 12, 2018 @ 8:00 am – November 13, 2018 @ 5:00 pm which isn’t ideal.

    Any help would be great, thanks.

    #1576059

    Thanks so much for reaching out!

    Using that extension, you can try using the following shortcode to get the format that you are looking for:

    [tribe_formatted_event_date id=7681 format=”F j, Y g:ia”] – [tribe_formatted_event_date id=7681 format=”F j” start_end=”end”]

    Let me know if that helps!

     

    Thanks,

    Jaime

    #1576641
    Robert
    Participant

    Didn’t work in the least. I think there is something wrong with the extension, it’s probably not been updated since the other updates to the core plugins.

    The "timezone" argument for this shortcode is invalid. Please reference http://php.net/manual/timezones.php. (This message is only shown to Contributors and higher level users.) – The "timezone" argument for this shortcode is invalid. Please reference http://php.net/manual/timezones.php. (This message is only shown to Contributors and higher level users.)

    #1576774
    Mathew
    Participant

    Robert,

    Using the exact code you pasted in your first post produces the same error in my testing.

    It looks like it’s a curly quotes issue. This can happen with a copy and paste.

    It works when the quotes are corrected.

    Here’s what they should look like.


    [tribe_formatted_event_date id=7681 format="F j, Y" timezone="America/New_York"]

    Ensure that all your quotes are straight. Using the keyboard to create the quotes and turning off the visual editor in WP will help in some cases.

    Hope this helps.

    #1576911

    Thanks, Matthew!

    Robert, let us know if that helps!

    #1593029
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Formatted Event Date Shortcode not working’ is closed to new replies.