Created
December 23, 2013 22:53
-
-
Save jbutko/8106218 to your computer and use it in GitHub Desktop.
PHP, WP: Display value of one specific custom field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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