Here is a complete tutorial with source files that do exactly what you want,
You can upload multi images by cloning the input field and also you can preview, delete images with ajax, add multi metaboxes to multiple/different post types and more.
http://www.deluxeblogtips.com/2010/05/howto-meta-box-wordpress.html
And here you can find some good information on how you call the attached images,
http://digwp.com/2009/08/awesome-image-attachment-recipes-for-wordpress/
Related Posts:
- Limit Media Library to Given Folder
- Hide upload image fields for the different media upload popups
- WordPress media uploader – upload tabs not hiding
- problem in uploading attachment to custom directory
- Can’t upload format files on media library
- Altered Media Library URLs
- How can I add a Description column to the media library browser screen?
- Make Custom Metaboxes Collapse by Default
- Add button to TinyMCE bar without creating a plugin
- How to include own css on wordpress tinymce editor?
- Rename UPLOADS folder with custom WP_CONTENT_DIR
- Check for and enforce unique value in user-entered custom meta field in WP Admin
- How to move wp-content (or uploads) outside of the WordPress directory
- How to edit the actual paragraph dropdown in TinyMCE with custom text styles
- Attach Files Metabox
- Add more rows on media picker
- Add metabox with media uploader in a custom post type [duplicate]
- TinyMCE default link target to “_blank”
- Automatically wrap post image in div
- TinyMCE style_select – Append Classes
- Restrict file uploads by extension?
- media_handle_upload weird thing
- Looking to display non-image files in Gallery with logo specific to file type
- How do I go straight to “Edit More Details” when clicking on an item in the media library?
- Add ‘Right Now’ widget to custom dashboard
- Syncing Avatars across multisite
- How to re-arrange media uploaded using : media_handle_upload() as per year / month
- How To Add buttons to the toolbar which appears in TinyMce when you click over images
- How to retrieve alt attribute for an attachment (uploaded image)?
- Limiting allowed html elements/strip harmful scripts from editor
- Duplicate Custom Header Functionality into the post edit screen
- How to insert a sitemap within a subsite when using WordPress multisite
- Multiple Tinymce/wp_editor in WordPress >4.8
- How to remove buttons from the WP Editor on the edit post page in the admin area
- TinyMCE custom dialog with selectbox not working
- The Best Way to always load the newest version of 3rd party code
- Add a InfoBox in the media upload window
- custom meta box for page default template
- custom upload directory only for plugin uploads
- Can I create my own custom Attachment Display Setting?
- Qtranslate + Woocommerce (multiple tinymce) [closed]
- Redirect to another page using contact form 7? [closed]
- Installing new theme on running site
- Data won’t save if metabox within conditional in admin. What am I missing?
- More Fields & Media Upload
- How to allow .bin files upload?
- How to add custom ‘layout’ buttons to wordpress editor?
- Media Upload not working after hiding some elements from functions.php
- Let author add field to metabox by pressing a button
- Meta Tags by Meta Box
- Insert media button will always add into the same tinyMCE editor
- Showing Meta Box via Jquery Checkbox
- problem saving/ retrieving custom meta with wp alchemy metabox
- WordPress 3.1.2 Bug: add_theme_support() and video post format registering twice
- Personalized Gallery what are my options?
- Select input in metabox not updated
- Multiple header style under meta box
- the temporary save folder is wrong
- Adding a drop-down (select tag) option under Menu Settings in WordPress Admin
- Adding attachment custom field metadata to TinyMCE tag
- Change meta-box title- “LearnDash Quiz Settings” to “Quiz Settings”
- How to fix custom add menu page preventing media library from loading
- Remove distraction free mode from teeny editor
- Embedded Options in a Custom Metabox
- duplicate featured image functionality in custom meta box
- Still desperate about multiple TinyMCEs in widgets – is there any good solution to this yet?
- How to add custom Author Info Box to blog posts “only” and NOT custom post templates
- How do I enable the text editer in my WordPress theme? [closed]
- issue with saving custom metaboxes fields
- after checked the checkbox in backend, dont show social link on frontend
- Is there a way to limit multi upload in media upload box?
- Organizing the Media Library for Cleanup
- DOM reference to TinyMCE editor element (button)
- Change post template the proper way
- Generating image sizes when uploading through wp.media
- Custom Link In WordPress Media “Attachment Details” Upload Screen
- Customize TinyMCE Buttons
- How can I create more “create attachment” custom field – any idea?
- Upload button in metabox not working
- Get a different size of Image thumbnail while working with custom metabox
- Upload files in wordpress
- Custom image sizes ignored in WP 3.5
- Need Advice to Working with Custom Post Meta
- WordPress uploads directory. Featured Images storage
- Saving an upload media meta box field
- How to apply filters if editing specific template
- How to show metabox in custom php menu page
- How to disable the PDF preview in the file block by default
- Undefined variable: user_id in get_user_meta
- Is it possible to make wordpress LMS
- White letters in header
- Saving contact form 7 data into custom Table
- Allowing .rfa Files In Media Upload [duplicate]
- Is there a way in WordPress to convert images to WebP without a plugin?
- WordPress media upload issue could not insert attachment into the database
- Get users based on month ACF datepicker field
- Creating a shortcode by pulling in a custom field from a plugin
- Set different max upload size limits based on file type/extension
- Divi: how to hide/show specific menu according current page?
- “woocommerce_form_field()” function having issues after latest woocommerce update [closed]