Viewing 5 replies - 1 through 5 (of 5 total)
  • Brook

    (@brook-tribe)

    Howdy Pete,

    I can not say for sure if this is the key you need. But, in the database/to WordPress the event dates are stored with two keys:
    _EventStartDate
    _EventEndDate

    More information in this tutorial on each of the post meta keys and their values.

    We are not gravity forms experts here, so I can not speak specifically as to the code you will need. But those are the The Events Calendar specific keys that will you need in the code.

    Cheers!
    – Brook

    Thread Starter condonp

    (@condonp)

    Brook,

    Many thanks for this I have got this to work however in Gravity forms it show s date format in American ie YYYY-MM-DD is there any way we can change this so that the _EventStartDate and _EventEnddate are showing in UK format ie DD-MM-YYYY

    Pete

    Plugin Author Brian

    (@brianjessee)

    Hi,

    You have to modify the output of the Stat Date with PHP to that format.

    Something like this might work:

    $startDate = strtotime( get_post_meta( $event_id, '_EventStartDate', True ) );
    $startDate = date( 'd-m-y H:i:s', $startDate  );

    Cheers

    Thread Starter condonp

    (@condonp)

    Brian,

    Many thanks for this but pardon my ignorance which file should I place this code in??

    Plugin Author Brian

    (@brianjessee)

    I am not sure. That is a Gravity Forms question and we are not able to support their plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Fileds for day and date of event’ is closed to new replies.