Support

Account

Home Forums Bug Reports Meta is being duplicated in database Reply To: Meta is being duplicated in database

  • If I understand you correctly, to get the image you would do something like below. Image and file fields only store attachment IDs

    
    $attachment_id = get_post_meta($post_id, 'image_field', true);
    if ($attachement_id) {
        $image =  wp_get_attachment_image_src( $attachment_id, $size);
        if ($image) {
            // output image here
            // see http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src
        }
    }