Title: Add Custom Fields to Media
Author: George Pattichis
Published: <strong>July 19, 2012</strong>
Last modified: March 13, 2026

---

Search plugins

![](https://ps.w.org/add-custom-fields-to-media/assets/banner-772x250.jpg?rev=3019065)

![](https://ps.w.org/add-custom-fields-to-media/assets/icon-256x256.png?rev=3019065)

# Add Custom Fields to Media

 By [George Pattichis](https://profiles.wordpress.org/pattihis/)

[Download](https://downloads.wordpress.org/plugin/add-custom-fields-to-media.2.0.4.zip)

 * [Details](https://frp.wordpress.org/plugins/add-custom-fields-to-media/#description)
 * [Reviews](https://frp.wordpress.org/plugins/add-custom-fields-to-media/#reviews)
 *  [Installation](https://frp.wordpress.org/plugins/add-custom-fields-to-media/#installation)
 * [Development](https://frp.wordpress.org/plugins/add-custom-fields-to-media/#developers)

 [Support](https://wordpress.org/support/plugin/add-custom-fields-to-media/)

## Description

Allows users to add custom fields to the media uploader and access those fields 
in posts or template files. Great for adding copyrights, image meta etc.

To display the custom fields in your theme, use the following shortcode in post/
pages:

 * `[acfm id="123" field="my_custom_field"]`

Where `id` is the ID of the media item and `field` is the name of the custom field.

For PHP templates, use the following code:

 * `echo get_post_meta( 123, 'my_custom_field', true );`

To use this plugin effectively, download and intall it on your WordPress blog. Next,
access “Media Custom Fields” page in your admin Settings and create a new custom
field for your media uploads.

 * Unique ID – The unique variable name for this item. It may not contain special
   characaters or spaces
 * Field Title – The name you want to appear in the media uploader
 * Field Help – A descriptive message you want to appear in the media uploader

Once you’ve added a custom field, you can access it via the Media Library or during
the Add Media process of uploading a new item.

This plugin was originally developed by [Christopher Ross](https://profiles.wordpress.org/christopherross/).
The plugin has been adopted and refactored by [George Pattichis](https://profiles.wordpress.org/pattihis/)
who will continue development and maintenance.

[Changelog](https://wordpress.org/extend/plugins/add-custom-fields-to-media/changelog/)

## Screenshots

[⌊Plugin settings page⌉⌊Plugin settings page⌉[

Plugin settings page

[⌊The custom fields in media library⌉⌊The custom fields in media library⌉[

The custom fields in media library

## Installation

 1. In your WordPress admin panel, go to Plugins > New Plugin, search for “Add Custom
    Fields To Media” and click “Install now”
 2. Alternatively, download the plugin and upload the contents of add-custom-fields-
    to-media.zip to your plugins directory, which usually is /wp-content/plugins/
 3. Activate the plugin
 4. Go to “Media Custom Fields” page in your admin Settings

## FAQ

### How do I display the contents of the custom fields?

 * `[acfm id="123" field="my_custom_field"]` – Shortcode
 * `echo get_post_meta( 123, 'my_custom_field', true );` – PHP code

### Where can I get more information, or technical support for this plugin?

You can post in the [support forum](https://wordpress.org/support/plugin/add-custom-fields-to-media/)
or [contact me](https://profiles.wordpress.org/pattihis/).

## Reviews

![](https://secure.gravatar.com/avatar/292d78009f29c33b35c9ec4ed1a42ab4ee17264a95e0114270bf0d2b75a683e4?
s=60&d=retro&r=g)

### 󠀁[Helpful for non-developers](https://wordpress.org/support/topic/helpful-for-non-developers/)󠁿

 [George Kpax](https://profiles.wordpress.org/gkpax/) January 22, 2025

I wanted to create a photo gallery website where I could add custom information 
about every image uploaded. This little tool probably did 90% of the work so all
I had to do was add some lines in my theme and I was done! Amazing… thank you!

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/add-custom-fields-to-media/reviews/)

## Contributors & Developers

“Add Custom Fields to Media” is open source software. The following people have 
contributed to this plugin.

Contributors

 *   [ George Pattichis ](https://profiles.wordpress.org/pattihis/)

“Add Custom Fields to Media” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/add-custom-fields-to-media/contributors)
for their contributions.

[Translate “Add Custom Fields to Media” into your language.](https://translate.wordpress.org/projects/wp-plugins/add-custom-fields-to-media)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/add-custom-fields-to-media/),
check out the [SVN repository](https://plugins.svn.wordpress.org/add-custom-fields-to-media/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/add-custom-fields-to-media/)
by [RSS](https://plugins.trac.wordpress.org/log/add-custom-fields-to-media/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.0.4

 * Security: Fix CSRF vulnerability in custom field deletion
 * Compatibility with WordPress v6.9

#### 2.0.3

 * Full compliance with WordPress Coding Standards (PHPCS)
 * Improved file docblocks and inline comments for standards
 * Enhanced security and sanitization review
 * Compatibility with WordPress v6.8

#### 2.0.2

 * Compatibility with WordPress v6.7

#### 2.0.1

 * Add links in plugins page
 * Fix Typo about URLs
 * Update Readme.txt
 * Update translations

#### 2.0.0 (January, 2024)

 * Major Update
 * Compatibility refactoring
 * WP Coding Standards
 * Added shortcode [acfm]

#### 1.2.5 (March 31, 2013)

 * fixed incorrectly named categories
 * removed link to website from plugin links
 * encoded and removed icon
 * added support link

#### 1.2.1 (September 13. 2012)

 * language customization
 * renamed function for compatibility

#### 1.2.0 (September 13. 2012)

Added functions:
 * `thisismyurl_has_custom_media_field( $attachment_id, $unique_field_id)`–
Returns boolean value * `thisismyurl_custom_media_field( $attachment_id, $unique_field_id)`–
Displays the value

#### 1.0.1

 * fixed a bug in the fetch function

#### 1.0.0

 * initial release

## Meta

 *  Version **2.0.4**
 *  Last updated **8 months ago**
 *  Active installations **80+**
 *  WordPress version ** 5.2 or higher **
 *  Tested up to **6.9.11**
 *  PHP version ** 7.2 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/add-custom-fields-to-media/) and
   [Russian](https://ru.wordpress.org/plugins/add-custom-fields-to-media/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/add-custom-fields-to-media)
 * Tags
 * [custom fields](https://frp.wordpress.org/plugins/tags/custom-fields/)[media](https://frp.wordpress.org/plugins/tags/media/)
   [meta fields](https://frp.wordpress.org/plugins/tags/meta-fields/)[upload](https://frp.wordpress.org/plugins/tags/upload/)
 *  [Advanced View](https://frp.wordpress.org/plugins/add-custom-fields-to-media/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/add-custom-fields-to-media/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/add-custom-fields-to-media/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/add-custom-fields-to-media/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/add-custom-fields-to-media/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/add-custom-fields-to-media/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/add-custom-fields-to-media/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/add-custom-fields-to-media/reviews/)

## Contributors

 *   [ George Pattichis ](https://profiles.wordpress.org/pattihis/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/add-custom-fields-to-media/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://profiles.wordpress.org/pattihis/)