Skip to content

Instantly share code, notes, and snippets.

@jbutko
Created December 23, 2013 22:53
Show Gist options
  • Save jbutko/8106218 to your computer and use it in GitHub Desktop.
Save jbutko/8106218 to your computer and use it in GitHub Desktop.
PHP, WP: Display value of one specific custom field
// Be careful as the 'key' ( = name of the field) is case sensitive
<?php echo get_post_meta($post->ID, 'key', true); ?>
<?php // From http://css-tricks.com/snippets/wordpress/using-custom-fields/ ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment