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; ?>
look:
not properly
the_field( "text_field", $post_id );
right
$mypost_id = get_queried_object()->ID;
the_field( "text_field", $mypost_id );
thanx! update acf solved the problem