Change display of _EventStartDate

Home Forums Calendar Products Events Calendar PRO Change display of _EventStartDate

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #958558
    wplove
    Participant

    I’m adding “_EventStartDate” to a slider plugin’s display code in order to display the start date of an event (along with the title of the event and description.) The result displays like this:
    “2015-05-03 08:00:00”
    I know this is the default way this meta-data displays, but is there any way to adjust this so it look more presentable?
    “May 3, 2015, 8:00”
    I don’t have access to php in the slider code window. Where would be the place to modify how this meta-data displays is its base presentation? And what would the settings need to be?

    Thank you!

    #958693
    Barry
    Member

    Hi!

    Normally you would use the tribe_get_start_date() function to get a more “human-friendly” date format.

    I’m not clear if you are unable to use PHP whatsoever or if you just mean that the slider plugin doesn’t expose a means of adding PHP through its user interface. If the latter is true, it may be that you need to devise a custom snippet and add it either through a plugin file of its own or else place it in your theme’s functions.php file.

    As to the shape and form of the snippet, I’m afraid I can’t offer too much assistance there (our support for third party plugins being fairly limited).

    Does that help, though, or at least give you a path you can explore further?

    #958800
    wplove
    Participant

    Thanks for the lead on this-I think your right on adding php to the slider-I could do it but it would require doing some other custom workaround to create a custom variable that I could drop in. This all may be a bit of a stretch for my limited php skills. I may have to find a clunkier work-around or commission someone to do it for me.

    #958801
    wplove
    Participant

    I’m not seeing “tribe_get_start_date()” listed on your page of functions:
    https://theeventscalendar.com/functions/

    The closest thing is “sp_get_start_date” but that’s marked as deprecated. Am I looking for more info on this function in the right place?

    #958876
    Barry
    Member

    Hi wplove, if you look at my previous reply you’ll find I linked to the documentation for that function 🙂

    #962119
    Barry
    Member

    Hi!

    It’s been a while so I’m going to go ahead and close this topic.

    • Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
    • Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context

    Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Change display of _EventStartDate’ is closed to new replies.