サムネイル画像表示
<img src="<?php the_post_thumbnail_url( 'full' ); ?>" alt="<?php the_title(); ?>" class="profileimg">
テキスト表示
<?php
$editor = get_field('プロフィール_下テキスト欄');
if($editor){ ?>
<div id="introduction"><?php echo $editor; ?></div>
<?php } ?>
リピート表示
<ul id="schedule" class="defList">
<?php if(have_rows('スケジュール')): ?>
<?php while(have_rows('スケジュール')): the_row(); ?>
<?php $schedule_cat = get_sub_field('スケジュール_カテゴリ'); ?>
<?php if($schedule_cat == "テレビ"): ?>
<li class="cat_1"><font color="#000000"><?php the_sub_field('スケジュール_内容'); ?></font><br /> </li>
<?php elseif ($schedule_cat == "映画"): ?>
<li class="cat_2"><font color="#000000"><?php the_sub_field('スケジュール_内容'); ?></font><br /> </li>
<?php elseif ($schedule_cat == "ラジオ"): ?>
<li class="cat_3"><font color="#000000"><?php the_sub_field('スケジュール_内容'); ?></font><br /> </li>
<?php elseif ($schedule_cat == "舞台・イベント"): ?>
<li class="cat_6"><font color="#000000"><?php the_sub_field('スケジュール_内容'); ?></font><br /> </li>
<?php elseif ($schedule_cat == "紙媒体"): ?>
<li class="cat_5"><font color="#000000"><?php the_sub_field('スケジュール_内容'); ?></font><br /> </li>
<?php else: ?>
<li class="cat_10"><font color="#000000"><?php the_sub_field('スケジュール_内容'); ?></font><br /> </li>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
</ul>
画像表示
<?php
$image = get_field('img');
$size = 'full';
if( $image ) {
echo wp_get_attachment_image( $image, $size );
}
?>
リピート画像
<?php if(have_rows('ギャラリー')): ?>
<?php while(have_rows('ギャラリー')): the_row(); ?>
<?php
$image = get_sub_field('ギャラリーimg');
if( $image ):?>
<li><img src="<?php echo $image; ?>" alt="写真:<?php the_title(); ?>"></li>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>