i have custom metabox with the image field, i can upload image from wp-admin to this metabox, metabox code
array(
'name' => 'Burst Image',
'desc' => 'Crop your image to exact dimension before upload!',
'id' => 'burst_img',
'type' => 'image'
)
i have code like $burst_img= get_post_meta( $post->ID, 'burst_img', true );
to get the metabox , but it doesn’t work, how can i get the metabox image ?
Normally, the WordPress function for displaying the image of your custom meta box is this
<?php wp_get_attachment_image_src( $attachment_id, $size, $icon ); ?>