init(); $wp->parse_request(); $wp->query_posts(); $wp->register_globals(); LoadYMLib($root.'../../'); $m_tpl = new CTemplateLayout($root); $gallery_ctrl = $m_tpl->GetInterface()->GetGalleryCtrl(); if($p) { $args = array( 'post_type' => 'works', 'p' => $p, 'posts_per_page' => 1 ); $my_query = new WP_Query($args); if($my_query->have_posts()){ $my_query->the_post(); $work['TITLE'] = get_post_meta($post->ID,"タイトル",true); $work['CATE'] = get_post_meta($post->ID,"カテゴリ",true); $work['ABOUT'] = get_post_meta($post->ID,"説明",true); $work['IMG'][0]['SRC'] = wp_get_attachment_image_src(get_post_meta($post->ID,"画像1",true),'large'); $work['IMG'][0]['TITLE'] = get_post_meta($post->ID,"画像1のタイトル",true); $work['IMG'][0]['ABOUT'] = get_post_meta($post->ID,"画像1の説明",true); $work['IMG'][1]['SRC'] = wp_get_attachment_image_src(get_post_meta($post->ID,"画像2",true),'large'); $work['IMG'][1]['TITLE'] = get_post_meta($post->ID,"画像2のタイトル",true); $work['IMG'][1]['ABOUT'] = get_post_meta($post->ID,"画像2の説明",true); $work['IMG'][2]['SRC'] = wp_get_attachment_image_src(get_post_meta($post->ID,"画像3",true),'large'); $work['IMG'][2]['TITLE'] = get_post_meta($post->ID,"画像3のタイトル",true); $work['IMG'][2]['ABOUT'] = get_post_meta($post->ID,"画像3の説明",true); $work['IMG'][3]['SRC'] = wp_get_attachment_image_src(get_post_meta($post->ID,"画像4",true),'large'); $work['IMG'][3]['TITLE'] = get_post_meta($post->ID,"画像4のタイトル",true); $work['IMG'][3]['ABOUT'] = get_post_meta($post->ID,"画像4の説明",true); $work['IMG'][4]['SRC'] = wp_get_attachment_image_src(get_post_meta($post->ID,"画像5",true),'large'); $work['IMG'][4]['TITLE'] = get_post_meta($post->ID,"画像5のタイトル",true); $work['IMG'][4]['ABOUT'] = get_post_meta($post->ID,"画像5の説明",true); $work['IMG'][5]['SRC'] = wp_get_attachment_image_src(get_post_meta($post->ID,"画像6",true),'large'); $work['IMG'][5]['TITLE'] = get_post_meta($post->ID,"画像6のタイトル",true); $work['IMG'][5]['ABOUT'] = get_post_meta($post->ID,"画像6の説明",true); $work['IMG'][6]['SRC'] = wp_get_attachment_image_src(get_post_meta($post->ID,"画像7",true),'large'); $work['IMG'][6]['TITLE'] = get_post_meta($post->ID,"画像7のタイトル",true); $work['IMG'][6]['ABOUT'] = get_post_meta($post->ID,"画像7の説明",true); $work['IMG'][7]['SRC'] = wp_get_attachment_image_src(get_post_meta($post->ID,"画像8",true),'large'); $work['IMG'][7]['TITLE'] = get_post_meta($post->ID,"画像8のタイトル",true); $work['IMG'][7]['ABOUT'] = get_post_meta($post->ID,"画像8の説明",true); } $title = $work['TITLE'].' | 宝塚新樹園施工事例'; $description = $work['TITLE'].' | 宝塚新樹園施工事例のご紹介'; } else { $title = '施工事例|宝塚新樹園は、打ち合わせから設計や施工、管理まで終始一貫した体制を整えております。'; $description = '宝塚新樹園は、打ち合わせから設計や施工、管理まで終始一貫した体制を整えております。'; } ?> <?php echo $title; ?>
Header($description); ?>

Side(); ?>

施工事例詳細


'.$work['TITLE'].'
'; ?>
$image) { if($key>0 && $image['SRC']){ ?>
'.$image['TITLE'].''; ?>

'; } } } ?>

'works', 'posts_per_page' => 30, 'paged' => $paged ); $my_query = new WP_Query($args); ?>

施工事例

have_posts()){ $my_query->the_post(); $title = get_post_meta($post->ID,"タイトル",true); $pic[0] = wp_get_attachment_image_src(get_post_meta($post->ID,"画像1",true),'medium'); ?>
ID.'" title="'.$title.'">'.$title.''; ?>
ID.'" title="'.$title.'">'.$title.''; ?>

'; } } ?>
max_num_pages, 4); } endif; ?> ContentFooter($root); ?>

GoogleAnalytics(); ?>