init(); $wp->parse_request(); $wp->query_posts(); $wp->register_globals(); //共通関数の読み込み include( '../module/lib/function.php'); $news_id = $_GET["id"]; //全イベントを取得 $args=array( 'p' => $news_id, 'post_type' => 'news', 'post_status' => 'publish', 'order'=>'DESC', 'orderby'=>'post_date', 'posts_per_page' => -1 ); $news = get_posts($args); if(!empty($news)){ $news_title = $news[0]->post_title; $news_body = get_field("body", $news[0]->ID); } ?> <?php echo h($news_title); ?> | 新着情報 | 津島まちなかナビ