Getting the values of custom post fields
It is possible to get the custom post field value?
Yes use get_post_meta
function.
If “in the WordPress Loop” use this code:
$result = get_post_meta($post->ID, 'customField', true);
If outside the Loop use this code:
global $wp_query;
$postid = $wp_query->post->ID;
echo get_post_meta($postid, 'customField', true);
…
tags: & category: -