映画館のWebサイトの上映スケジュールを作っています。
3/16 11:00
3/16 16:00
3/16 19:00
とエントリーがあるなかで11時過ぎに見たら16時と19時のエントリが表示されるようにしたいと思っております。(途中入場不可なのでこのほうが親切かと思いまして)
<?php $current_year = date('Y');$current_month = date('m');$current_day = date('d');$current_hour = date('G'); ?>
<?php query_posts("time hour>=$current_hour&day=$current_day&monthnum=$current_month&year=$current_year&order=ASC&posts_per_page=10&cat=1&orderby=ID&orderby=time&post_status=publish,future"); ?>
本日のエントリのみに絞ることは出来ています。
上記ではdate('G')としましたが、H,h,gも試しましたが、変化有りません。
何卒宜しくお願いします。