Title: Add Custom Fields to Media
Author: George Pattichis
Published: <strong>2012-07-19</strong>
Last modified: 2026-03-13

---

Szukaj wtyczek

![](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

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

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

 * [Szczegóły](https://pl.wordpress.org/plugins/add-custom-fields-to-media/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/add-custom-fields-to-media/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/add-custom-fields-to-media/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/add-custom-fields-to-media/#developers)

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

## Opis

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/)

## Zrzuty ekranu

[⌊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

## Instalacja

 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

## Najczęściej zadawane pytania

### 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/).

## Recenzje

![](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/) 2025-01-22

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!

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

## Kontrybutorzy i deweloperzy

„Add Custom Fields to Media” jest oprogramowaniem open source. Poniższe osoby miały
wkład w rozwój wtyczki.

Zaangażowani

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

Wtyczka „Add Custom Fields to Media” została przetłumaczona na 1 język. Podziękuj
[tłumaczom](https://translate.wordpress.org/projects/wp-plugins/add-custom-fields-to-media/contributors)
za ich wkład.

[Przetłumacz wtyczkę “Add Custom Fields to Media” na swój język.](https://translate.wordpress.org/projects/wp-plugins/add-custom-fields-to-media)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/add-custom-fields-to-media/),
sprawdź [repozytorium SVN](https://plugins.svn.wordpress.org/add-custom-fields-to-media/)
lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/add-custom-fields-to-media/)
przez [RSS](https://plugins.trac.wordpress.org/log/add-custom-fields-to-media/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

#### 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

 *  Wersja **2.0.4**
 *  Ostatnia aktualizacja **7 miesięcy temu**
 *  Włączone instalacje **80+**
 *  Wersja WordPressa ** 5.2 lub nowszej **
 *  Testowano do **6.9.9**
 *  Wersja PHP ** 7.2 lub nowszej **
 *  Języki
 * [English (US)](https://wordpress.org/plugins/add-custom-fields-to-media/) i [Russian](https://ru.wordpress.org/plugins/add-custom-fields-to-media/).
 *  [Przetłumacz na swój język](https://translate.wordpress.org/projects/wp-plugins/add-custom-fields-to-media)
 * Tagi
 * [custom fields](https://pl.wordpress.org/plugins/tags/custom-fields/)[media](https://pl.wordpress.org/plugins/tags/media/)
   [meta fields](https://pl.wordpress.org/plugins/tags/meta-fields/)[upload](https://pl.wordpress.org/plugins/tags/upload/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/add-custom-fields-to-media/advanced/)

## Oceny

 5 na 5 gwiazdek.

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

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

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

## Zaangażowani

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

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

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

## Złóż datek

Czy chcesz wesprzeć rozwój wtyczki?

 [ Wspomóż wtyczkę ](https://profiles.wordpress.org/pattihis/)