acf field no spaces code example Example: acf field without spaces <?php echo str_replace(' ', '', get_field('your_field')); ?>