メタのバリューを参照し現在の日付と照らし合わせ記事を取得
$today = date('Y/m/d'); $arg = array( 'post_type' => 'works', 'meta_query' => array( array( 'key'=> 'end', 'value'=> $today, 'compare'=>'>=', 'type'=>'DATE' ) ), 'paged' => get_query_var('paged'), 'posts_per_page' => '5' ); $posts = query_posts($arg);