過去の上映作品
‘-1’, //(整数)- 1ページに表示する記事数。-1 ならすべての投稿を取得。
‘post_type’ => ‘library’, //カスタム投稿タイプのみを指定。
‘post_status’ => ‘publish’, //取得するステータスを指定:publish(公開済み)
‘order’ => ‘ASC’ //降順。大きい値から小さい値の順。
);
$myQuery->query($param); // クエリにパラメータを渡す
?>
have_posts()): while($myQuery->have_posts()) : $myQuery->the_post(); ?>