Support

Account

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

  • In the last line of your code, at the beginning, there ist a “<” missing. Try:

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