{"id":18802,"date":"2012-07-19T15:02:54","date_gmt":"2012-07-19T15:02:54","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/add-custom-fields-to-media\/"},"modified":"2026-03-13T00:24:22","modified_gmt":"2026-03-13T00:24:22","slug":"add-custom-fields-to-media","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/add-custom-fields-to-media\/","author":14632437,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0.4","stable_tag":"2.0.4","tested":"6.9.4","requires":"5.2","requires_php":"7.2","requires_plugins":null,"header_name":"Add Custom Fields To Media","header_author":"George Pattichis","header_description":"","assets_banners_color":"137dad","last_updated":"2026-03-13 00:24:22","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/profiles.wordpress.org\/pattihis\/","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/add-custom-fields-to-media\/","header_author_uri":"https:\/\/profiles.wordpress.org\/pattihis\/\/","rating":5,"author_block_rating":0,"active_installs":90,"downloads":6994,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.1":{"tag":"1.1.1","author":"christopherross","date":"2012-09-13 15:01:22"},"1.2.0":{"tag":"1.2.0","author":"christopherross","date":"2012-11-20 13:19:42"},"1.2.2":{"tag":"1.2.2","author":"christopherross","date":"2013-03-31 14:39:32"},"2.0.0":{"tag":"2.0.0","author":"pattihis","date":"2024-01-09 05:10:52"},"2.0.1":{"tag":"2.0.1","author":"pattihis","date":"2024-01-10 04:40:26"},"2.0.2":{"tag":"2.0.2","author":"pattihis","date":"2024-11-30 16:45:06"},"2.0.3":{"tag":"2.0.3","author":"pattihis","date":"2025-06-29 19:29:44"},"2.0.4":{"tag":"2.0.4","author":"pattihis","date":"2026-03-13 00:24:22"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":2},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3019065,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3019065,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500-rtl.jpg":{"filename":"banner-1544x500-rtl.jpg","revision":3019065,"resolution":"1544x500","location":"assets","locale":""},"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":3019065,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250-rtl.jpg":{"filename":"banner-772x250-rtl.jpg","revision":3019065,"resolution":"772x250","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":3019065,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.1","1.2.0","1.2.2","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3019065,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3019065,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Plugin settings page","2":"The custom fields in media library"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2010,84,9051,259],"plugin_category":[50],"plugin_contributors":[198195],"plugin_business_model":[],"class_list":["post-18802","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-fields","plugin_tags-media","plugin_tags-meta-fields","plugin_tags-upload","plugin_category-media","plugin_contributors-pattihis","plugin_committers-pattihis"],"banners":{"banner":"https:\/\/ps.w.org\/add-custom-fields-to-media\/assets\/banner-772x250.jpg?rev=3019065","banner_2x":"https:\/\/ps.w.org\/add-custom-fields-to-media\/assets\/banner-1544x500.jpg?rev=3019065","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/add-custom-fields-to-media\/assets\/icon-128x128.png?rev=3019065","icon_2x":"https:\/\/ps.w.org\/add-custom-fields-to-media\/assets\/icon-256x256.png?rev=3019065","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/add-custom-fields-to-media\/assets\/screenshot-1.png?rev=3019065","caption":"Plugin settings page"},{"src":"https:\/\/ps.w.org\/add-custom-fields-to-media\/assets\/screenshot-2.png?rev=3019065","caption":"The custom fields in media library"}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>To display the custom fields in your theme, use the following shortcode in post\/pages:<\/p>\n\n<ul>\n<li><code>[acfm id=\"123\" field=\"my_custom_field\"]<\/code><\/li>\n<\/ul>\n\n<p>Where <code>id<\/code> is the ID of the media item and <code>field<\/code> is the name of the custom field.<\/p>\n\n<p>For PHP templates, use the following code:<\/p>\n\n<ul>\n<li><code>echo get_post_meta( 123, 'my_custom_field', true );<\/code><\/li>\n<\/ul>\n\n<p>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.<\/p>\n\n<ul>\n<li>Unique ID - The unique variable name for this item. It may not contain special characaters or spaces<\/li>\n<li>Field Title - The name you want to appear in the media uploader<\/li>\n<li>Field Help - A descriptive message you want to appear in the media uploader<\/li>\n<\/ul>\n\n<p>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.<\/p>\n\n<p>This plugin was originally developed by <a href=\"https:\/\/profiles.wordpress.org\/christopherross\/\">Christopher Ross<\/a>. The plugin has been adopted and refactored by <a href=\"https:\/\/profiles.wordpress.org\/pattihis\/\">George Pattichis<\/a> who will continue development and maintenance.<\/p>\n\n<p><a href=\"http:\/\/wordpress.org\/extend\/plugins\/add-custom-fields-to-media\/changelog\/\">Changelog<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>In your WordPress admin panel, go to Plugins &gt; New Plugin, search for \"Add Custom Fields To Media\" and click \"Install now\"<\/li>\n<li>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\/<\/li>\n<li>Activate the plugin<\/li>\n<li>Go to \"Media Custom Fields\" page in your admin Settings<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20display%20the%20contents%20of%20the%20custom%20fields%3F\"><h3>How do I display the contents of the custom fields?<\/h3><\/dt>\n<dd><ul>\n<li><code>[acfm id=\"123\" field=\"my_custom_field\"]<\/code> - Shortcode<\/li>\n<li><code>echo get_post_meta( 123, 'my_custom_field', true );<\/code> - PHP code<\/li>\n<\/ul><\/dd>\n<dt id=\"where%20can%20i%20get%20more%20information%2C%20or%20technical%20support%20for%20this%20plugin%3F\"><h3>Where can I get more information, or technical support for this plugin?<\/h3><\/dt>\n<dd><p>You can post in the <a href=\"https:\/\/wordpress.org\/support\/plugin\/add-custom-fields-to-media\/\">support forum<\/a> or <a href=\"https:\/\/profiles.wordpress.org\/pattihis\/\">contact me<\/a>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.4<\/h4>\n\n<ul>\n<li>Security: Fix CSRF vulnerability in custom field deletion<\/li>\n<li>Compatibility with WordPress v6.9<\/li>\n<\/ul>\n\n<h4>2.0.3<\/h4>\n\n<ul>\n<li>Full compliance with WordPress Coding Standards (PHPCS)<\/li>\n<li>Improved file docblocks and inline comments for standards<\/li>\n<li>Enhanced security and sanitization review<\/li>\n<li>Compatibility with WordPress v6.8<\/li>\n<\/ul>\n\n<h4>2.0.2<\/h4>\n\n<ul>\n<li>Compatibility with WordPress v6.7<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Add links in plugins page<\/li>\n<li>Fix Typo about URLs<\/li>\n<li>Update Readme.txt<\/li>\n<li>Update translations<\/li>\n<\/ul>\n\n<h4>2.0.0 (January, 2024)<\/h4>\n\n<ul>\n<li>Major Update<\/li>\n<li>Compatibility refactoring<\/li>\n<li>WP Coding Standards<\/li>\n<li>Added shortcode [acfm]<\/li>\n<\/ul>\n\n<h4>1.2.5 (March 31, 2013)<\/h4>\n\n<ul>\n<li>fixed incorrectly named categories<\/li>\n<li>removed link to website from plugin links<\/li>\n<li>encoded and removed icon<\/li>\n<li>added support link<\/li>\n<\/ul>\n\n<h4>1.2.1 (September 13. 2012)<\/h4>\n\n<ul>\n<li>language customization<\/li>\n<li>renamed function for compatibility<\/li>\n<\/ul>\n\n<h4>1.2.0 (September 13. 2012)<\/h4>\n\n<p>Added functions:\n* <code>thisismyurl_has_custom_media_field( $attachment_id, $unique_field_id )<\/code> - Returns boolean value\n* <code>thisismyurl_custom_media_field( $attachment_id, $unique_field_id )<\/code> - Displays the value<\/p>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>fixed a bug in the fetch function<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>initial release<\/li>\n<\/ul>","raw_excerpt":"Add custom fields to media uploader and access them in template files. Great for copyrights, image meta etc.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/18802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=18802"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pattihis"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=18802"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=18802"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=18802"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=18802"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=18802"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=18802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}