Support

Account

Home Forums General Issues Hide WYSIWYG fields if they are empty Reply To: Hide WYSIWYG fields if they are empty

  • Try this code:

    <?php 
    $whatever = get_field('fieldnameofyourwysisyg');
    ( !empty( $whatever ) ): ?>	
    	<div class="yourcontent">
    		<?php echo $whatever; ?>
    	</div>
    <?php endif; ?>

    This Code only renders the Content and it’s container if there is code inside.