{"id":55320,"date":"2008-09-25T20:28:05","date_gmt":"2008-09-25T20:28:05","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/nkmimagefield\/"},"modified":"2009-12-16T01:33:03","modified_gmt":"2009-12-16T01:33:03","slug":"nkmimagefield","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/nkmimagefield\/","author":1137791,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.6","stable_tag":"trunk","tested":"2.8.6","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"NKMImageField","header_author":"Noemi Millman","header_description":"","assets_banners_color":"","last_updated":"2009-12-16 01:33:03","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/triopter.com\/archive\/announcing-nkmimagefield-a-custom-image-field-plugin-for-wordpress\/","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3436,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["**NOTE:** Version 0.4.1 fixes","description","installation","other_notes"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-55320","plugin","type-plugin","status-closed","hentry","plugin_committers-nmillman"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/nkmimagefield.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Have you ever needed to associate an image with each page or post?  Perhaps it's a headshot for a profile page, or a theme header image that changes on each page?  Well, you can add them with custom fields, but you have to copy and paste the image paths or URLs, which is clunky, and difficult for less-technical users.<\/p>\n\n<p>NKMImageField provides an easy graphical interface for inserting image URLs from the Media gallery into custom fields.<\/p>\n\n<p>NKMImageField does not currently interface with gallery or image management plugins such as NextGen-Gallery.<\/p>\n\n<h4>Example uses:<\/h4>\n\n<ul>\n<li>Use a different header image in your theme for each page<\/li>\n<li>Assign a screenshot to each item ina graphic design portfolio<\/li>\n<li>Upload product views for each item in a store<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>Unzip into plugins directory, and\/or install via Wordpress admin interface.<\/p>\n\n<!--section=other_notes-->\n<h3>Instructions<\/h3>\n<p>The plugin installs a new administration screen under the Settings menu.  Use this screen to create, edit, and remove new fields.  There is no limit to the number of fields that may be created.<\/p>\n\n<p>Please note that when a field is deleted, all values for that field for all posts are also deleted.<\/p>\n\n<p>Data is not destroyed when the plugin is uninstalled.<\/p>\n\n<p>Each field and its description are displayed under the content edit box on the Post and Page writing and editing screens.  To insert an image into a field, click the graphic beside the field, choose an image from the gallery (or upload a new one), and click the \"insert into post\" button.  The image's URL will appear in the text field.  Any changes will be saves when the page\/post is saved.<\/p>\n<h3>Template Tags<\/h3>\n<p>Image URLs are stored in a separate table rather than alongside other post metadata (aka customfields).  The data can be retrieved in templates in one of three ways:<\/p>\n\n<pre><code>get_nkm_imagefields([$post_id]) -- Returns an array containing all custom image field data for the current post.\n\nget_nkm_imagefield($fieldname [, $post_id]) -- Returns an array containing all data for the indicated field for the current post.\n\nget_nkm_imageurl($fieldname [, $post_id]) -- Returns a string containing the URL for the indicated field for the current post.\n<\/code><\/pre>\n\n<p>All three template tages also take an optional $post_id parameter indicating the post for which to retrieve the image field.  This parameter is optional within the Loop (where it will default to the current post) and mandatory outside the Loop.<\/p>\n<h3>Compatibility<\/h3>\n<p>This plugin currently requires PHP 5 in order to run.  It will not install properly using PHP 4.<\/p>\n<h3>Acknowledgements<\/h3>\n<p>Thank you to Hani AbuGhazaleh (http:\/\/www.mmbarn.com\/) for his invaluable assistance in bug hunting and troubleshooting.<\/p>","raw_excerpt":"NKMImageField provides an easy graphical interface for inserting image URLs from the Media gallery into custom fields.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/55320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=55320"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nmillman"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=55320"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=55320"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=55320"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=55320"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=55320"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=55320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}