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
- can I orderby one custom field and meta_query another in the same query
- Hide page title in WordPress 3.0
- How to translate month names in “Archives”
- Virtual Pages plugins
- How to remove padding and margin between divi rows? [closed]
- Renaming wp_content problem
- programmatically create posts from files in a folder
- Warning: Creating default object… when altering Customize panels
- WPAlchemy MediaAccess inserting media link in WP Editor instead of custom field in metabox [closed]
- Is there a way to set the value and text for Select/Radio/Checkbox using More Fields?
- the_post_thumbnail() returns nothing even though has_post_thumbnail() returns true
- Instant install of wordpress
- Get /users/me details from WordPress backend
- WordPress integration with Backbone or AngularJS