Snippet Wordpress Custom Fields Wordpress

WordPress simple get post meta

<?php echo get_post_meta($post->ID, 'custom-field-name', true); ?>

This function returns the values of the custom fields with the specified key from the specified post.

This is the simplest method of simply echoing out the value of a WordPress custom field on a post or custom post. Just replace custom-field-name with the name of the desired custom field you want to echo out.

Source: http://codex.wordpress.org/Function_Reference/get_post_meta