Support » Plugin: More Fields » [Plugin: More Fields] is it possible: if has field, els, show another ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’ve done stuff like this in the past:

    <?php $custom_field = get_post_meta($post->ID, 'custom_field', true); ?>
      <?php if(trim($custom_field) != '') { ?>
        <p><?php $custom_field ?></p>
      <?php } else { ?>
        <p>No custom field set</p>
      <?php } ?>

    that is great !

    Very good one, been strugling with isset() and empty() and it didn’t work that way. Thanks!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: More Fields] is it possible: if has field, els, show another ?’ is closed to new replies.