Displaying a custom field

get_post_custom() will return an array of arrays. You need:

echo $custom_array['my_custom_field'][0];

Alternatively, you can use get_post_meta() with the $single flag as true:

echo get_post_meta( get_the_ID(), 'my_custom_field', true );