• Hi, what is the shortcode equivalent of this if statement?

    <?php
    
    if(get_field('field_name'))
    {
    	echo '<p>' . get_field('field_name') . '</p>';
    }
    
    ?>

    Thank you.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘ACF IF statement shortcode’ is closed to new replies.