Home › Forums › Calendar Products › Events Calendar PRO › Change display of _EventStartDate
- This topic has 5 replies, 2 voices, and was last updated 10 years, 11 months ago by
Barry.
-
AuthorPosts
-
April 27, 2015 at 8:49 am #958558
wplove
ParticipantI’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!
April 27, 2015 at 12:52 pm #958693Barry
MemberHi!
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?
April 27, 2015 at 7:47 pm #958800wplove
ParticipantThanks 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.
April 27, 2015 at 7:52 pm #958801wplove
ParticipantI’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?
April 28, 2015 at 6:39 am #958876Barry
MemberHi wplove, if you look at my previous reply you’ll find I linked to the documentation for that function 🙂
May 12, 2015 at 7:15 am #962119Barry
MemberHi!
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!
-
AuthorPosts
- The topic ‘Change display of _EventStartDate’ is closed to new replies.
