Seats Shortcode not working also
Plugin Author
Franky
(@liedekef)
1) see the placeholder doc for events http://www.e-dynamics.be/wordpress/category/documentation/7-placeholders/7-2-events/ : use #_ADDBOOKINGFORM_IF_NOT_REGISTERED
2) see the placeholder doc for events http://www.e-dynamics.be/wordpress/category/documentation/7-placeholders/7-2-events/ : use #_REMOVEBOOKINGFORM in your single event format
3) it is meant for that. See the doc. Otherwise, use [eme_attendees] or #_ATTENDEES in your single event format
4) See the doc and above
5) See the doc and above
In short: see the doc …
After doing some tweaks i figured out default templates having issues and i need to create template to perforn tasks….
But still [eme_countdown id=4] is not working 🙂
Plugin Author
Franky
(@liedekef)
I just tested eme_countdown: works just fine. What is the event start date? Does the event with ID 4 exist?
Normally, just use this in your single event format:
[eme_countdown id=#_EVENTID]
Here is my template
[eme_countdown id=#_EVENTID]
#_ADDBOOKINGFORM_IF_NOT_REGISTERED
#_REMOVEBOOKINGFORM_IF_REGISTERED
#_ATTENDEES
#_BOOKINGS
And Output is here http://imgur.com/a/vZa6j
Plugin Author
Franky
(@liedekef)
Thanks for that, but that info doesn’t respond to the questions I asked …
Sorry,
Event Id is 4 and Event date 08/04/2017 to 08/04/2017
Event time is 08:19AM – 05:19PM
Plugin Author
Franky
(@liedekef)
Seems ok. Maybe something wrong with the datetime and/or timezone on your server?
Also, this is the code for the countdown (in eme_events.php):
function eme_countdown($atts) {
global $eme_timezone;
extract ( shortcode_atts ( array ('id'=>''), $atts ) );
if ($id!="") {
$event=eme_get_event($id);
} else {
$newest_event_array=eme_get_events(1);
$event=$newest_event_array[0];
}
$eme_date_obj = new ExpressiveDate($event['event_start_date']." ".$event['event_start_time'],$eme_timezone);
$eme_date_obj_now=new ExpressiveDate(null,$eme_timezone);
return intval($eme_date_obj_now->getDifferenceInDays($eme_date_obj));
}
so you could add some ‘print_r” statements to debug things before the return-line:
print_r($event);
print_r($eme_date_obj);
print_r($eme_date_obj_now);
And see if the generated output seems ok to you …