showtime というプラグインを使用しています。気に入っていますが、ひとつ問題は、当日のスケジュールを呼び出したいということです。このプラグインの一部は、ショートコードを呼び出して、すべての日とその日のスケジュールを取得します。
当日のスケジュールを確実に取得するには、以下のコードに何を追加すればよいでしょうか。
function showtime_schedule_handler($atts, $content=null, $code=""){
global $wpdb;
global $showtimeTable;
//Get the current schedule, divided into days
$daysOfTheWeek = array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
$schedule = array();
$output = '';
foreach ($daysOfTheWeek as $day) {
//Add this day's shows HTML to the $output array
$showsForThisDay = $wpdb->get_results( $wpdb->prepare ( "SELECT * FROM $showtimeTable WHERE dayOfTheWeek = '$day' ORDER BY startTime" ));