ACF COLOR PICKER
ACFのカラーピッカーを表示させるコードです。add_colorpickerがフィールド名です。
背景が選択した色になります。LP用の投稿タイプにする場合便利です。
<div class="content" style="background-color: <?php the_field('add_colorpicker'); ?>;">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
<?php endif; ?>
</div>