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
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.