Get Custom Fields Outside the Loop

Posted in Code Snippets

Get Custom Fields Outside the Loop

<?php
global $wp_query;
$postid = $wp_query->post->ID;
echo get_post_meta($postid, 'customField', true);
?>

From: WPRecipes