Would like to change Meta Data format _EventStartDate

Home Forums Calendar Products Events Calendar PRO Would like to change Meta Data format _EventStartDate

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1155319
    Anne
    Participant

    Hello,

    I use WordPress post Meta Data like on your advice page : https://theeventscalendar.com/knowledgebase/wordpress-post-meta-data/, to display some events resume.

    l use this one : _EventStartDate
    And it works perfecly.
    But you indicate : “Start date and time of event in this format YYYY-MM-DD HH:MM:SS”
    And it is right, when I use this meta data, date and time of my events display in this format.

    I was wondering if is it possible to change this format? I would like to change to french format such as : j F Y | HHhMM
    (example : 3 septembre 2016 | 19h00)
    If yes, I have no idea how to do that. Could you help me?

    Here is my website page as example: http://voxpopuli.o-web.ca/

    Thanks a lot in advance,
    Anne

    #1155629
    Cliff
    Member

    Hi Anne.

    Instead of using those meta fields directly (i.e. raw database data), you should use our functions, such as tribe_get_start_date()tribe_get_end_date(), and many other functions.

    Please let me know if this answers your question.

    #1155772
    Anne
    Participant

    Hi Cliff,

    Thank you for replying me et for your suggestion.

    Actually, I really need a meta data value. I would to use a configuration with the Visual Composer plugin, and it requests a meta data. Please check the attached image.

    Otherwise, I am not sure about functions, because I do not know how to use them 🙂 sorry about that.

    Thanks,
    Anne

    #1156006
    Cliff
    Member

    I didn’t realize you were trying to integrate with Visual Composer. I thought you were custom coding something.

    Maybe you could custom code your own shortcode to get the start date in the format you want and use that in VC instead of their meta values module.

    I’m afraid there’s not anything more I can share to help with this issue. You might want to ask their support if there’s a way to accomplish what you’re wanting (using a meta value but doing something to it before displaying it).

    #1156125
    Anne
    Participant

    I understand. Thank you for your suggestion. Thanks a lot for your time! Have a nice day.

    #1156146
    Cliff
    Member

    Sure thing. Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Would like to change Meta Data format _EventStartDate’ is closed to new replies.