I read the following document and develop the PHP code.
* https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_events
global $post;
$current_date = date(‘j M Y’);
$get_posts = tribe_get_events(array(‘start_date’=>$current_date,’posts_per_page’=>10) );
There was not problem until recent days (Maybe, plugin version 3.0.4… Sorry, I don’t remember…).
Today, I took notice that the PHP code needs to be changed as follow.
global $post;
$current_date = date(‘Y-m-j’);
$get_posts = tribe_get_events(array(‘eventDisplay’=>’all’, ‘start_date’=>$current_date,’posts_per_page’=>10) );
This is two point.
1. Date format changed?
2. ‘eventDisplay’ value is required?
About No.1, I think that this is the reference to the Date format in General settings.
(My settings is YYYY/MM/DD)
After the code was changed, there is not problem, so I report the strange behavior.