Return to Snippet

Revision: 52630
at October 28, 2011 00:51 by i-am-andy


Initial Code
<?php if (strlen(get_post_meta($post->ID, "direct dial", true)) > 0) : ?>
  <p class="direct_dial"><strong>DD</strong> <?php echo get_post_meta($post->ID, "direct dial", true);?></p>
<?php endif; ?>

Initial URL


Initial Description
Only show content if Custom Field exists

Initial Title
Conditional Statement if Custom Field Exists Wordpress

Initial Tags
wordpress

Initial Language
PHP