I am using meta boxes from WP tuts this tutorial http://wp.tutsplus.com/tutorials/reusable-custom-meta-boxes-part-3-extra-fields/ everything works fine but I don't know ho to call value from image uploader. In my index.php I used this code
<?php $image_upload = get_post_meta($post->ID, $field['custom_image'], true);?>
<?php print_r($image_upload );?>
and it printed this
Array (
[_edit_last] => Array ( [0] => 1 )
[_edit_lock] => Array ( [0] => 1331586724:1 )
[_thumbnail_id] => Array ( [0] => 152 )
)
And when I write this code:
<?php echo wp_get_attachment_image(152); ?>
It shows completly diferent image. Does someone know what I am doing wrong?