Support

Account

Home Forums Feature Requests Hide content when custom field is empty ? Reply To: Hide content when custom field is empty ?

  • 
    if (get_field('server_1')) {
    ?>
    <button class="button" type="button" onClick="document.getElementById('frame').src='<?php the_field('server_1'); ?>'">Openload</button>
    <center><iframe name="frame" id="frame" src="<?php the_field('server_1'); ?>" width="640" height="360" scrolling="no" frameborder="0"></iframe></center>
    <?php 
    }