Problems displaying the meta EventStartDate in custom posts.

Home Forums Calendar Products Events Calendar PRO Problems displaying the meta EventStartDate in custom posts.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1227731
    Rodrigo
    Participant

    Hello!
    As you can see in my homepage (http://unipazdf2.hospedagemdesites.ws) I am using, the meta EventStart Date to display in my custom view, the fisrt section of the site, under the menu.

    The meta is displaying like this: início em: 2017-02-03 00:00:00

    I want to display like this: 03/02/2017

    yes, without hours

    How can I do that???

    #1228511
    Nico
    Member

    Hi there Rodrigo,

    Thanks for getting in touch with us! I can help you here 🙂

    Not sure what the code you are using looks like (send it if further help is needed), but I guess you can use tribe_get_start_date to get the formatted date. Checkout the functions docs here → https://theeventscalendar.com/function/tribe_get_start_date/

    The code will look like:

    echo tribe_get_start_date( $event_id, false );

    Please let me know if that works for you,
    Best,
    Nico

    #1245277
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Problems displaying the meta EventStartDate in custom posts.’ is closed to new replies.