Custom Fields WordPress


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



Copy this code and paste it in your HTML
  1. <?php if ( get_post_meta($post->ID, 'difficulty') ) : ?>
  2. <small> <?php echo get_post_meta($post->ID, 'difficulty', true); ?></small>
  3. <?php endif; ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.