matthijs166
9/22/2017 - 8:09 PM

ACF get field from option page

Advance custom fields get a field from the options page

<p><?php the_field('field_name', 'option'); ?></p>



$variable = get_field('field_name', 'option');



<?php if( have_rows('repeater', 'option') ): ?>

    <ul>

    <?php while( have_rows('repeater', 'option') ): the_row(); ?>

        <li><?php the_sub_field('title'); ?></li>

    <?php endwhile; ?>

    </ul>

<?php endif; ?>