_eventstartdate format

Home Forums Calendar Products Events Calendar PRO _eventstartdate format

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1162941
    Ian
    Participant

    This topic seems to have been asked quite a few times, but I have yet to find a solution.

    When using Revolution Slider you are able to call _EventStartDate to include it in a slider, but it comes through in the format YY/MM/DD 00:00:00 rather than a formatted date.

    The support team at Revolution Slider suggest it needs resolving from the Events Calendar end as it is the format that it is being supplied in. Ideally we are wanting it to format at 01st Month 1999 format.

    This would mean event sliders with a start date could be displayed automatically which would be a massive plus for the Events Calendar. Would really appreciate some help with this one. πŸ™‚

    #1163210
    Cliff
    Member

    Hi Ian.

    The value stored in the database for that field is inΒ YYYY-MM-DD HH:MM:SS format.

    This is not going to change. However, if there’s a function their slider or page builder is using to pull this raw data, it could probably be filtered to be in a specific format for their slider.

    Here is a screenshot of one of my testing site’s single event’s post meta:Β https://cl.ly/1f2C132a372j

    If you do go the route of some filter of the date and time, I’d advise using _EventStartDateUTC or somehow incorporating the timezone into the filter’s functionality.

    If the slider authors would like to work with us on figuring out the best way to go about this, please put them in contact with us at [email protected] and have them link to this thread in their email.

    Thank you.

    #1163821
    Ian
    Participant

    I have reached out to the team at Revolution Slider, so let’s hope.

    #1164220
    Cliff
    Member

    Sounds good. If you have a copy of their latest version, I may be able to take a closer look if you’d like. Feel free to include it in a Private Reply or just disregard if you’d rather wait to hear from them first.

    #1164232
    Ian
    Participant

    Hi Cliff

    This is their latest reply:

    As plugin developers mentioned that this is the format values are stored in database in, best route in this case would be to create a custom function that simply takes the stored database value as input and parse it out in modified format as required. This could also be done by creating a custom shortcode and include that shortcode in the slider as Revolution Slider supports shortcodes.

    Kindly ask event calendar support if they are able to help you with this. Otherwise let me know and I will create this function / shortcode for you which will filter the content and modify date format.

    Is this enough information for you? Otherwise, please let me know what you would like πŸ™‚

    #1164249
    Cliff
    Member

    If you provide me a copy of the latest version of Revolution Slider and a video screencast of what you’re doing now, I might be able to figure out what they mean by using shortcode output instead of the database’s raw value.

    Otherwise, they can handle doing it for you too. It’s your choice. Just let me know how you’d like to proceed here.

    #1164515
    Ian
    Participant

    This reply is private.

    #1164542
    Cliff
    Member

    This reply is private.

    #1164546
    Ian
    Participant

    This reply is private.

    #1164896
    Cliff
    Member

    Hi Ian.

    This took longer than expected to create, but I think it’s a pretty robust utility shortcode. I hope it is to your liking.

    Please download and install this .zip file. And please do look into its source code to understand what it’s capable of and how to use it.

    I tried it in a Slider Revolution post slide, but get_the_ID() isn’t working per slide, and I didn’t see any merge field like {{post_id}} to use, but in theory, if one of these 2 methods worked, you could enter this on a slide:

    [tribe_formatted_event_date format="dS F Y"]

    or something like:

    [tribe_formatted_event_date id={{post_id}} format="dS F Y"]

    I tried to get you a quick answer via this tweet, but I didn’t get a reply before wanting to pass along this information to you today. Maybe you know of a way to pull this off, seeing as you’re more familiar with this slider plugin than I am.

    They notified us that they will include this functionality in a future update. πŸ™‚

    • This reply was modified 9 years, 7 months ago by Cliff. Reason: update from ThemePunch's reply via Twitter
    #1165132
    Ian
    Participant

    Hi Cliff

    We are so appreciative of all your hard work. We have reached out to Revolution Slider, as we are struggling to get it to work in the slider as you did. I will update you as soon as we hear back from them. I think we are very close!!! πŸ™‚

    #1165254
    Cliff
    Member

    I was hoping you saw I edited my previous reply.

    They said, via a Tweet reply, that they’ll add something to a future update so a shortcode like the one I provided you should get things working.

    Please let me know once they do — and send me a copy of that version of Slider Revolution plugin once it’s out.

    Thanks!

    #1174079
    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

    #1181576
    Cliff
    Member

    Ian, I’m not sure if you heard, but a user reported in a different thread that my shortcode plugin worked for Revolution Slider v5.3 that was recently released.

    I hope it works well for you too! If it doesn’t, feel free to open a new thread.

    Thanks!

    #1257792
    Cliff
    Member

    Hi. I just wanted to let you know that we published a how-to for Slider Revolution and Essential Grid:Β https://theeventscalendar.com/knowledgebase/integrating-events-calendar-slider-revolution-essential-grid/

    We hope you find it useful! If you have follow-up questions about it, please create a new thread.

    Thanks and have a great rest of your week!

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘_eventstartdate format’ is closed to new replies.