i want get subfield get_option() instead ACF field (from option page)
yeah !
<?php $numbers = get_option('options_' .'numbers', true);
if ($numbers) {
for ($i=0; $i < $numbers; $i++) {
$num = 'numbers_'.$i.'_num';
$tel = get_option('options_' . $num, true);
$tel_preg = preg_replace('/[^\d+]/', '', $tel ); ?>
<a href="te:<?php echo $tel_preg;?>" class="phone">
<?php echo $tel; ?>
</a>
<?php }
} ?>
instead
<?php if ( have_rows( 'numbers', 'options' ) ) : ?>
<?php while ( have_rows( 'numbers', 'options' ) ) :
the_row(); ?>
<?php if ( $num = get_sub_field( 'num', 'options' ) ) : ?>
<?php echo esc_html( $num ); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>