TODAY’S CAST

TODAY'S CAST本日出勤予定のキャスト

‘product’, ‘paged’ => $paged, ‘posts_per_page’ => -1); /* 投稿タイプを指定 */
query_posts( $args );
$dateTime = getTodayYYYYMMDD();
$today = get_date_from_gmt($dateTime->format(‘Y-m-d H:i:s’), ‘Ymd’);
?>


ID,’name’,true);
$productImage = get_post_meta($post->ID,’product_img1′,true);
if (empty($productImage)) {
continue;
}

// 今日
$open_hh = get_post_meta($post->ID,$today.’open_hh’,true);
$open_mi = get_post_meta($post->ID,$today.’open_mi’,true);
$close_hh = get_post_meta($post->ID,$today.’close_hh’,true);
$close_mi = get_post_meta($post->ID,$today.’close_mi’,true);
if (empty($open_hh) && empty($open_mi) && empty($close_hh) && empty($close_mi)) {
continue;
}

$workTime = ”;
if (!empty($open_hh) && !empty($open_mi)) {
$workTime = $workTime.$open_hh.’:’.$open_mi;
}
if ((!empty($open_hh) && !empty($open_mi)) || (!empty($close_hh) && !empty($close_mi))) {
$workTime = $workTime.’ ~ ‘;
}
if (!empty($close_hh) && !empty($close_mi)) {
$workTime = $workTime.$close_hh.’:’.$close_mi;
}
?>


TOPへ