MyRestlessDream
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [The Events Calendar] tribe_create_event => problem with the dateThank you for your answer 🙂
No problem for posting my solution. It is really disappointing when we cant find the solution because the person doesn’t share it! It can always help someone so I always share my solutions 😉
Thank you a lot for the discount coupon. I will tell to my customer about the PRO version 🙂
Cheers.
Forum: Plugins
In reply to: [The Events Calendar] tribe_create_event => problem with the dateI found the solution by myself! I am French so it was not the good format. I did not know that the plugin translates automatically the date. So it needs the French format !
In case that someone has the same problem, I used the format ‘dd-mm-yyyy’. And it is mandatory to fill the EventStartHour and EventStartMinute! (in French format so without the meridian 17:00). The date will not work without those parameters!Here an example :
$insert = array( 'post_title' => 'Titre', 'post_content' => 'Description', 'post_status' => 'draft', 'post_author' => 999, 'post_excerpt' => 'Extrait', 'EventStartDate' => '30-01-2013', 'EventEndDate' => '31-01-2013', 'EventStartHour' => '08', 'EventStartMinute' => '15', 'EventEndHour' => '17', 'EventEndMinute' => '30', 'EventCost'=> '10', 'EventShowMap'=> true, 'Venue' => array( 'Venue' => 'Nom de la salle', 'Country' => 'France', 'Address' => 'Adresse', 'City' => 'Ville', 'Zip' => '00000' ), 'Organizer' => array( 'Organizer' => 'Nom', 'Email' => '[email protected]', 'Phone' => '0600000000' ) ); tribe_create_event( $insert ); )
Viewing 2 replies - 1 through 2 (of 2 total)