{"id":2969,"date":"2008-04-23T19:38:51","date_gmt":"2008-04-23T19:38:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/custom-field-images\/"},"modified":"2010-08-29T22:53:36","modified_gmt":"2010-08-29T22:53:36","slug":"custom-field-images","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/custom-field-images\/","author":180901,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.2.3","stable_tag":"2.2.3","tested":"2.8","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"Custom Field Images","header_author":"scribu","header_description":"","assets_banners_color":"","last_updated":"2010-08-29 22:53:36","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/scribu.net\/wordpress","header_plugin_uri":"http:\/\/scribu.net\/wordpress\/custom-field-images","header_author_uri":"http:\/\/scribu.net\/","rating":0,"author_block_rating":0,"active_installs":60,"downloads":29451,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.9.2","2.0.0.1","2.2.3"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1538941","resolution":"2","location":"plugin","width":596,"height":181},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1538941","resolution":"3","location":"plugin","width":957,"height":719},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1538941","resolution":"1","location":"plugin","width":699,"height":249}},"screenshots":{"1":"The custom box for inserting image data","2":"The quick insert button","3":"The settings page"}},"plugin_section":[],"plugin_tags":[2010,163,847],"plugin_category":[50],"plugin_contributors":[77621],"plugin_business_model":[],"class_list":["post-2969","plugin","type-plugin","status-closed","hentry","plugin_tags-custom-fields","plugin_tags-images","plugin_tags-thumbs","plugin_category-media","plugin_contributors-scribu","plugin_committers-scribu"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/custom-field-images.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/custom-field-images\/trunk\/screenshot-1.png?rev=1538941","caption":"The custom box for inserting image data"},{"src":"https:\/\/ps.w.org\/custom-field-images\/trunk\/screenshot-2.png?rev=1538941","caption":"The quick insert button"},{"src":"https:\/\/ps.w.org\/custom-field-images\/trunk\/screenshot-3.png?rev=1538941","caption":"The settings page"}],"raw_content":"<!--section=description-->\n<p><strong>This plugin is retired. Please use <a href=\"http:\/\/markjaquith.wordpress.com\/2009\/12\/23\/new-in-wordpress-2-9-post-thumbnail-images\/\">Post Thumbnails<\/a> instead.<\/strong><\/p>\n\n<p>Custom Field Images provides a flexible way to associate an image to a post and display it anywhere on your site.<\/p>\n\n<p><strong>Easily insert image data<\/strong><\/p>\n\n<p>The plugin adds a custom meta box which is designed specifically for image data, making it easier to use than the generic custom fields box. There is also a button for filling the box automatically with an image uploaded through WordPress.<\/p>\n\n<p><strong>Manage all images in one go<\/strong><\/p>\n\n<p>The plugin has button for importing \/ exporting \/ deleting any available images, all at once. Also, you can set default settings for all images, so you don't have to edit every image if you change your site's layout.<\/p>\n\n<p><strong>Show recent posts as images<\/strong><\/p>\n\n<p>Instead of displaying recent posts as plain links, you can display them as a list of images, using the built-in widget.<\/p>\n\n<p>Links: <a href=\"http:\/\/scribu.net\/wordpress\/custom-field-images\">Plugin News<\/a> | <a href=\"http:\/\/scribu.net\">Author's Site<\/a><\/p>\n\n<!--section=installation-->\n<p>You can use the WordPress plugin installer, or do it manually:<\/p>\n\n<ol>\n<li>Unzip \"Custom Field Images\" archive and put the folder into your plugins folder (\/wp-content\/plugins\/).<\/li>\n<li>Activate the plugin from the Plugins menu.<\/li>\n<\/ol>\n\n<h4>Usage<\/h4>\n\n<p>You can add <code>&lt;?php custom_field_image() ?&gt;<\/code> inside The Loop in the theme files where you want them to appear. Be sure to check the settings so as not to have duplicate images.<\/p>\n\n<p>For example, if you want them to appear only when viewing posts by category, add the above function to category.php in your theme directory and uncheck \"Display in: content and\/or excerpt\" from the settings page.<\/p>\n\n<p>You can also add <code>[cfi]<\/code> where you want the image to appear in the post content (not excerpt). By default, it is inserted at the beginning.<\/p>\n\n<p>There is also an additional template tag, called <code>get_custom_field_image()<\/code> which you can use to display the images however you want. See <code>template-tags.php<\/code> in the plugin directory for more details.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>\"Parse error: syntax error, unexpected T_CLASS...\" Help!<\/dt>\n<dd><p>Make sure your host is running PHP 5. Add this line to wp-config.php to check:<\/p>\n\n<pre><code>var_dump(PHP_VERSION);\n<\/code><\/pre><\/dd>\n<dt>Why are the images displayed two times?<\/dt>\n<dd><p>Probably because you used the template tag and forgot to uncheck the content, excerpt or feed checkboxes from the Settings page.<\/p><\/dd>\n<dt>Why aren't my images aligning properly?<\/dt>\n<dd><p>This is due to your theme's CSS. Check if you have something like this in style.css:<\/p>\n\n<pre><code>img.alignleft {float:left; margin: 0 1em .5em 0}\nimg.alignright {float:right; margin: 0 0 .5em 1em}\nimg.aligncenter {display:block; margin: 0 auto .5em auto}\n<\/code><\/pre><\/dd>\n<dt>What if I don't want to use the widget?<\/dt>\n<dd><p>You can add <code>&lt;?php cfi_loop($query) ?&gt;<\/code> directly to your theme files. $query is an optional parameter, which acts as a <a href=\"http:\/\/codex.wordpress.org\/Template_Tags\/query_posts\">query string<\/a>.<\/p><\/dd>\n<dt>How can I delete a custom field image from a post?<\/dt>\n<dd><p>Just clear the URL field and save the post.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.2.3<\/h4>\n\n<ul>\n<li>confirmed 2.9 compatibility<\/li>\n<\/ul>\n\n<h4>2.2.2<\/h4>\n\n<ul>\n<li>fixed image link on single posts<\/li>\n<\/ul>\n\n<h4>2.2<\/h4>\n\n<ul>\n<li>added border:0; to all styles for feeds<\/li>\n<li>if displaying the post, show only the image, without the link<\/li>\n<li>if size not available, use default<\/li>\n<li>grab the first image in the gallery tab and not the first image uploaded<\/li>\n<li>added Russian translation<\/li>\n<li><a href=\"http:\/\/scribu.net\/wordpress\/custom-field-images\/cfi-2-2.html\">more info<\/a><\/li>\n<\/ul>\n\n<h4>2.1.1<\/h4>\n\n<ul>\n<li>fixed warning<\/li>\n<li>set default size to thumbnail<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>added first attachment option<\/li>\n<li>better values for get_custom_field_image()<\/li>\n<li>bugfix for IE<\/li>\n<li><a href=\"http:\/\/scribu.net\/wordpress\/custom-field-images\/cfi-2-1.html\">more info<\/a><\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>add image by ID and size<\/li>\n<li>better template tags<\/li>\n<li>default URL<\/li>\n<li>fixed l10n<\/li>\n<li><a href=\"http:\/\/scribu.net\/wordpress\/custom-field-images\/cfi-2-0.html\">more info<\/a><\/li>\n<\/ul>\n\n<h4>1.9<\/h4>\n\n<ul>\n<li>l10n<\/li>\n<li>better admin page<\/li>\n<li>fixed (Insert CFI) button<\/li>\n<li><a href=\"http:\/\/scribu.net\/wordpress\/custom-field-images\/cfi-1-9.html\">more info<\/a><\/li>\n<\/ul>\n\n<h4>1.8<\/h4>\n\n<ul>\n<li>CFI Loop widget<\/li>\n<li><a href=\"http:\/\/scribu.net\/wordpress\/custom-field-images\/cfi-1-8.html\">more info<\/a><\/li>\n<\/ul>\n\n<h4>1.7<\/h4>\n\n<ul>\n<li>(Insert CFI) button<\/li>\n<li><a href=\"http:\/\/scribu.net\/wordpress\/custom-field-images\/cfi-1-7.html\">more info<\/a><\/li>\n<\/ul>\n\n<h4>1.6<\/h4>\n\n<ul>\n<li>[cfi] shortcode<\/li>\n<li>duplicate alt. text as title<\/li>\n<li><a href=\"http:\/\/scribu.net\/wordpress\/custom-field-images\/cfi-1-6.html\">more info<\/a><\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>import \/ export functionality<\/li>\n<li>option to automatically link to associated post<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>extra attributes for image link<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>one field per image instead of 4<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>general improvements<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>page support<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>initial release<\/li>\n<\/ul>","raw_excerpt":"Easily associate any image to a post and display it in post excerpts, feeds etc.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/2969","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=2969"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/scribu"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=2969"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=2969"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=2969"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=2969"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=2969"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=2969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}