WordPress の ACF プラグインで繰り返しのコンテンツ(繰り返しフィールド)を使いたい場合
ACFのプロ版を購入する必要がある。
<?php if (have_rows('カスタムフィールド名')) : while (have_rows('カスタムフィールド名')) : the_row(); ?> <p><?php the_sub_field('カスタムフィールド名'); ?></p> <?php endwhile; endif; ?>
ACFのプロ版を購入する必要がある。
<?php if (have_rows('カスタムフィールド名')) : while (have_rows('カスタムフィールド名')) : the_row(); ?> <p><?php the_sub_field('カスタムフィールド名'); ?></p> <?php endwhile; endif; ?>