As You know wordpress can use custom field only inside the loop, but with this snippet you can call custom fields also outside the loop, calling a function (global wp_query).
You can put this code where you want your custom fields appear, obvious outside the loop. Continue reading