As taken from :
http://wordpress.org/extend/plugins/media-custom-fields/faq/
How does this plugin handle my data?
Media items are stored in
WordPress just like regular posts. This enables us to use native
WordPress functions to store and retrieve your custom fields. Due to
this, your data is stored in a very future-proof way, in the postmeta
table of the WordPress database.
So you would do it the same way you would do it for a post or page using get_post_meta
, but you would pass the media attachment ID in as the post ID
Related Posts:
- Custom dropdown field added to media gallery; how to get it to save properly?
- Save Custom Meta Value on Media Upload
- Change behavior of “Insert into Post” based on attachment metadata
- Add new “Insert Into Post” button with another function
- Saving Custom Field in Attachment Window in WordPress 3.5
- Custom bulk action for media gallery items
- How to save custom fields for attachments
- How to save media files under custom folder without changing wp-config.php or changing media settings
- How do I modify the “Insert Media” lightbox in the admin to only show media items from a category?
- modify wordpress caption shortcode
- How to add upload video option in wordpress for user?
- 3.8 Media Upload and Custom Meta Box
- WordPress Media Uploader custom Javascript not working
- Display MP3 as media using an URL from a custom field
- Shortcode for Custom Field of Media Attachment (to use with Featured Images)
- Custom field in media library not saving, selected() function not adding “selected” to select list input type
- Adding fields to attachment – only shows when inserting new attachments
- display custom media folders to wordpress media popup
- Media Attachment Custom Meta Fields not saving in Media Uploader when using jQuery UI Autocomplete
- How can I create more “create attachment” custom field – any idea?
- Insert wp gallery shortcode into custom textarea
- How can I attach files without using a plugin?
- Media library to list images only user uploaded
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- Is it safe to store a user setting you don’t want the user to ever modify as a user option?
- Add custom fields to search
- extend Meta Box / Document Panel
- Add multiple images to a page sidebar
- getEntityRecord without knowing the post type
- Add custom field to image editor
- Metabox nonce PHP notice
- Access to Media Library
- How to break meta values into different items and avoid duplicates?
- ajax delete value from custom field array
- How can I sort get_users() by any value (last_name, user defined fields and more)
- Custom field for default gallery
- After moving my site from a dev subdomain, to root, all my custom meta data is gone
- How can I query on the year part of a complete date in a custom field?
- WordPress Custom Field Should be Unique. Is it possible?
- all tincymce’s switch when updating page after changing from html to text in custom metabox
- How to display Meta Field Value?
- What is the cleanest way to extract custom variables from a post
- Add source URL from Feed WordPress (Syndication) plugin to a custom field in post editor
- List custom taxonomy terms from custom field
- How do I create a column in Users list and display user data from custom registration field
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- How organize uploaded media in WP?
- user Profile meta value as custom field
- Remove Body Classes
- Use WPbakery for own custom field [closed]
- Product Custom Fields with HTML and JS
- Add new image block, set default class name and update it using Javascript
- Client PDF Upload (Catalogue) – Automatically update link to PDF
- Change the sort order for posts to include custom field
- Button inside Custom Meta Box triggering the Update Button
- Remove delete-attachment button for every media
- Get image url using image id
- Get categories query not working in function.php
- wordpress custom loop ascending descending posts by custom field
- Only show when content added via custom field
- Using a custom field inside a shortocde
- Add Custom Profile Field as Notes
- Woocommerce frontend edit custom fields
- Related query shows same image in loop
- Insert posting automatically based in acf field
- Data URI in custom fields
- Add specific custom fields to post formats
- Displaying an ACF list of users
- wp_editor on custom meta textarea field – images and html fails
- using custom fields on content.php file of my theme
- Hide / Show Custom field depending of the page ID (Magic Field 2)
- How to show certain data on certain interval of period
- How to parse a huge list of users using a CRON function?
- Counting post fields
- add_comment_meta not working properly
- how to enable custom fields in the Gutenberg post editor
- Missing Custom Fields
- Automatically Add Tags Taxonomy in Post from Custom field’s value
- Is there any way to make a custom field for a post only if the author is a certain user?
- Images not displaying on site or media library
- How to I change the value of a custom field on the home page?
- Insert Link to Audio versus Embed Audio Player
- Media not displaying other users uploads – WordPress 4.9.2
- Use WP_Meta_Query To List All Values For 1 Key On Page Template
- Stop truncation of shortcodes in custom text fields?
- Save custom post data outside of default post form
- Get custom field outside wordpress loop on new php page
- controlling whether upload is attached to post or not
- Wrap this custom field with hyperlink link
- Metabox nonce not allowing update
- Undefined Variable (Displaying image via custom field)
- I would like to display different text on different pages
- Cannot get tags working from a WPAlchemy metabox with wp_editor()
- Retrieve IDs from custom field, count and display results differently according to count
- unlink() doesn’t delete the uploaded file
- Filter Query Post by Custom Fields(by date)
- Can’t sort custom column on user.php by number / meta_value_num?
- Why some images are not allowed to be edited only for thumbnails?
- How to batch-add image file extension without losing DB refs?
- Add link to media files in backend and modify linked images in the frontend