Wordpress Custom Fields


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php $CUSTOM_NAME = get_post_meta($post->ID, 'CUSTOM_NAME', TRUE); ?>
  2. <?php if($CUSTOM_NAME) { echo $CUSTOM_NAME; } ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.