I'm using this in conjunction with the Custom Post Types UI plugin, have Custom Post Types UI set to 'Supports Custom Fields,' have added an image upload field to my page, and then inserted <?php get_post_custom_values('img_upload'); ?> into my custom post type template. (img_upload being my custom field key)

However, the image isn't appearing on the page. I've also attempted to try different field types, but those didn't show up either.

I deactivated all of my plugin, still no result.

I tried switching themes, no result.

Tried it on a different site altogether and actually got a bunch of PHP errors.

Not sure if anyone else is having this experience, but for the life of me I can't seem to fix it.

The first parameter passes the current post/page ID, the second one is the name of the metakey you need, and the third is for whether or not you want to force it to return just a single value, instead of an array. (True = single value, false = array).