Support

Account

Home Forums ACF PRO Insert dots and $ sign if is a number Reply To: Insert dots and $ sign if is a number

  • valor1= 260000 –> $260.000
    valor2= example –> example

    valor1 and valor2 can be number or text.

    <?php if ( have_rows( 'valores' ) ) : ?>
    <?php while ( have_rows( 'valores' ) ) : the_row(); ?>
    <?php the_sub_field( 'valor1' ); ?>
    <?php the_sub_field( 'valor2' ); ?>
    <?php endwhile; ?>
    <?php endif; ?>

    Thx