{"id":4291,"date":"2008-12-22T13:51:10","date_gmt":"2008-12-22T13:51:10","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/the-attached-image\/"},"modified":"2012-06-01T15:28:53","modified_gmt":"2012-06-01T15:28:53","slug":"the-attached-image","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/the-attached-image\/","author":1434610,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.6.3.1","stable_tag":"2.6.3.1","tested":"3.3.2","requires":"2.5","requires_php":"","requires_plugins":"","header_name":"The Attached Image","header_author":"Paul Robinson","header_description":"","assets_banners_color":"","last_updated":"2012-06-01 15:28:53","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/return-true.com\/donations\/","header_plugin_uri":"http:\/\/return-true.com\/2008\/12\/wordpress-plugin-the-attached-image\/","header_author_uri":"http:\/\/return-true.com","rating":0,"author_block_rating":0,"active_installs":100,"downloads":25577,"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.2","1.3","1.4","1.4.1","1.4.2","1.5","1.6","1.6.1","1.8","1.9","2.0","2.0.1","2.1","2.1.1","2.2","2.3","2.3.1","2.3.2","2.3.3","2.3.4","2.3.5","2.4","2.4.1","2.4.2","2.4.3","2.4.4","2.4.5","2.4.6","2.4.7","2.4.8","2.4.9","2.4.9.1","2.4.9.2","2.5","2.5.1","2.5.2","2.5.3","2.5.4","2.5.5","2.5.6","2.5.7","2.5.8","2.5.9","2.5.9.1","2.5.9.2","2.5.9.3","2.5.9.4","2.6","2.6.1","2.6.2","2.6.3","2.6.3.1"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1573768","resolution":"1","location":"plugin","width":520,"height":265}},"screenshots":[]},"plugin_section":[],"plugin_tags":[1346,163,166],"plugin_category":[50],"plugin_contributors":[83489,83488],"plugin_business_model":[],"class_list":["post-4291","plugin","type-plugin","status-closed","hentry","plugin_tags-attachments","plugin_tags-images","plugin_tags-posts","plugin_category-media","plugin_contributors-upekshapriya","plugin_contributors-veneficusunus","plugin_committers-veneficusunus"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/the-attached-image.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/the-attached-image\/trunk\/screenshot-1.jpg?rev=1573768","caption":""}],"raw_content":"<!--section=description-->\n<p>The Attached Image is a simple plugin that packs quite a punch. It shows the first image attached to the current post. It was inspired by a plugin wrote by Kaf Oseo, but when support was stopped &amp; a recent upgrade of WordPress meant it didn't work exactly like it used to I decided to take on the challenge of remaking it using the new WordPress functions available.<\/p>\n\n<p>Features include an options page to easily customise how the plugin works, the ability to override those options through the use of legacy parameters entered via a fairly friendly query string system. All the plugin requires is that you call it within the loop.<\/p>\n\n<p>There are limited instructions of how to install this plugin here on Wordpress.org under the installation tab. It is however advisable to check the detailed installation instructions provided a my <a href=\"http:\/\/return-true.com\/2008\/12\/wordpress-plugin-the-attached-image\/\" title=\"Full installation instructions &amp; more info\">website<\/a><\/p>\n\n<p>Please report all bugs by visiting my <a href=\"http:\/\/return-true.com\/2008\/12\/wordpress-plugin-the-attached-image\/\" title=\"Report bugs here.\">website<\/a> &amp; dropping me a comment or by sending me an email to pablorobinson[at]gmail[dot]com. Thank you.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unzip the zip file.<\/li>\n<li>place the folder into the <code>wp-content\/plugins<\/code> folder.<\/li>\n<li>Place <code>&lt;?php the_attached_image(); ?&gt;<\/code> in your template.<\/li>\n<li>Open your Appearence menu and click The Attached Image. There you will find all the options to customise how The Attached Image works.<\/li>\n<li>Check my <a href=\"http:\/\/return-true.com\/2008\/12\/wordpress-plugin-the-attached-image\/\" title=\"Full installation instructions &amp; more info\">website<\/a> for more information on what each option does, or click documentation in the options page for full documentation on each option &amp; how to use legacy parameters.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>What happened to the FAQ?<\/dt>\n<dd><p>Well most of the questions asked are now irrelevant as there is a detailed post with instructions of what the plugin does, how to install it, what the options do &amp; other things at my <a href=\"http:\/\/return-true.com\/2008\/12\/wordpress-plugin-the-attached-image\/\" title=\"Answers to all your questions about The Attached Image\">website<\/a>.<\/p><\/dd>\n<dt>What if that post doesn't answer my question?<\/dt>\n<dd><p>You can ask me it by leaving a comment on that post I linked to in the last question, you can send an email via the contact form on that website or you can send me an email straight to pablorobinson[at]gmail[dot]com.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.6.3.1<\/h4>\n\n<ul>\n<li>Fixed syntax error. Thanks to Bill Hopkins.<\/li>\n<\/ul>\n\n<h4>2.6.3<\/h4>\n\n<ul>\n<li>Add query object passthrough for have_attached_image() function.<\/li>\n<\/ul>\n\n<h4>2.6.2<\/h4>\n\n<ul>\n<li>WordPress version compat update.<\/li>\n<\/ul>\n\n<h4>2.6.1<\/h4>\n\n<ul>\n<li>Fixed minor bug with custom image links via custom fields.<\/li>\n<\/ul>\n\n<h4>2.6<\/h4>\n\n<ul>\n<li>---<\/li>\n<\/ul>\n\n<h4>2.5.9.4<\/h4>\n\n<ul>\n<li>Added the correct way to grab width &amp; height from the info returned by WP.<\/li>\n<\/ul>\n\n<h4>2.5.9.3<\/h4>\n\n<ul>\n<li>Ahem! Nothing to see here. Making stupid mistakes.<\/li>\n<\/ul>\n\n<h4>2.5.9.2<\/h4>\n\n<ul>\n<li>Added cleaner code for displaying full image contributed by Upekshapriya.<\/li>\n<\/ul>\n\n<h4>2.5.9.1<\/h4>\n\n<ul>\n<li>Fixed problem with img tag ignoring the disable command when using in post image functionallity.<\/li>\n<\/ul>\n\n<h4>2.5.9<\/h4>\n\n<ul>\n<li>Minor update for asthetics &amp; added donations box to admin after requests for an easy way to support the plugin.<\/li>\n<\/ul>\n\n<h4>2.5.8<\/h4>\n\n<ul>\n<li>Fixed default image problem if used without setting up the admin page.<\/li>\n<li>Changed custom_img system to use ID of post with custom image instead of attachment ID.<\/li>\n<li>Added custom field key for use with image order system.<\/li>\n<\/ul>\n\n<h4>2.5.7<\/h4>\n\n<ul>\n<li>Minor case-sensitivity bug<\/li>\n<\/ul>\n\n<h4>2.5.6<\/h4>\n\n<ul>\n<li>Removed RSS feature due to incompatibilities &amp; major flaws.<\/li>\n<\/ul>\n\n<h4>2.5.5<\/h4>\n\n<ul>\n<li>Major overhaul of in_post_image system, including WP thumbnail detector.<\/li>\n<\/ul>\n\n<h4>2.5.4<\/h4>\n\n<ul>\n<li>Added a new option to pick thumbnails sizes when using in post functionality<\/li>\n<\/ul>\n\n<h4>2.5.3<\/h4>\n\n<ul>\n<li>Added a fix that stopped rel attr from being applied only on default link case. Thanks to Nick Benson @ PressEnter Creative for the fix. <\/li>\n<\/ul>\n\n<h4>2.5.2<\/h4>\n\n<ul>\n<li>Added a fix for return\/echo support on in_post_image &amp; added a suggestion from Nick Benson to link to large images if they exist.<\/li>\n<\/ul>\n\n<h4>2.5.1<\/h4>\n\n<ul>\n<li>Added enclosure support to show the first attached image as a media file in WP RSS &amp; RSS2 feeds.<\/li>\n<\/ul>\n\n<h4>2.5<\/h4>\n\n<ul>\n<li>Added fix for custom queries via second function parameter.<\/li>\n<\/ul>\n\n<h4>2.4.9.2<\/h4>\n\n<ul>\n<li>Fixed full image size flaw.<\/li>\n<\/ul>\n\n<h4>2.4.9.1<\/h4>\n\n<ul>\n<li>Added a bug fix for the want image tag. Thanks Eduardo Gonzalez for the fix.<\/li>\n<\/ul>\n\n<h4>2.4.9<\/h4>\n\n<ul>\n<li>Added have_attached_image() for checking if attached image is available.<\/li>\n<\/ul>\n\n<h4>2.4.8<\/h4>\n\n<ul>\n<li>Added a checkbox in options to turn off &amp; on perma functionality for in post image.<\/li>\n<\/ul>\n\n<h4>2.4.7<\/h4>\n\n<p>*Changed $post to $wp_query-&gt;post to allow for the use of query_posts.<\/p>\n\n<h4>2.4.6<\/h4>\n\n<ul>\n<li>Forgot to add custom width &amp; height for external images.<\/li>\n<\/ul>\n\n<h4>2.4.5<\/h4>\n\n<ul>\n<li>Fixed a problem with the option image filename for the alt &amp; title attribs.<\/li>\n<\/ul>\n\n<h4>2.4.4<\/h4>\n\n<ul>\n<li>Added getimagesize for external servers.<\/li>\n<\/ul>\n\n<h4>2.4.3<\/h4>\n\n<ul>\n<li>Added in_post_image feature for Jake Garrison &amp; fixed changelog numbers.<\/li>\n<\/ul>\n\n<h4>2.4.2<\/h4>\n\n<ul>\n<li>Minor bug fix. Silly mistake on options page. Marked height as width on options.<\/li>\n<\/ul>\n\n<h4>2.4.1<\/h4>\n\n<ul>\n<li>Minor bug fix. Width &amp; Height if logic.<\/li>\n<\/ul>\n\n<h4>2.4<\/h4>\n\n<ul>\n<li>Added legacy support to all parameters &amp; added documentation to cover useage.<\/li>\n<\/ul>\n\n<h4>2.3.5<\/h4>\n\n<ul>\n<li>Forgot space after default images alt text. Thanks to rougedeals.com for the spot.<\/li>\n<\/ul>\n\n<h4>2.3.4<\/h4>\n\n<ul>\n<li>Forgot to return output in alt text, also made mistake in if logic for default title\/alt.<\/li>\n<\/ul>\n\n<h4>2.3.3<\/h4>\n\n<ul>\n<li>Added more function customisation parameters.<\/li>\n<\/ul>\n\n<h4>2.3.2<\/h4>\n\n<ul>\n<li>Added parameters back in for CSS class and img size so multiple calls to the function can be customised since the options page acts as global.<\/li>\n<\/ul>\n\n<h4>2.3.1<\/h4>\n\n<ul>\n<li>Minor bug fixes to mistakes that should never have been made in the first place.<\/li>\n<\/ul>\n\n<h4>2.3<\/h4>\n\n<ul>\n<li>Added support for changeable image alt &amp; hyperlink title attributes.<\/li>\n<\/ul>\n\n<h4>2.2<\/h4>\n\n<ul>\n<li>Major remodel. Plugin now includes a options page.<\/li>\n<\/ul>\n\n<h4>2.1.1<\/h4>\n\n<ul>\n<li>Minor bug fix for default images.<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>Added support for adding the rel attribute to the href.Thanks to Dip for the suggestion.<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Fixed a small bug in the custom link feature. Thanks to Jennifer once more for pointing it out.<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Changed the method by which custom field work to one suggested by Jennifer of scriptygoddess.com.<\/li>\n<\/ul>\n\n<h4>1.9<\/h4>\n\n<ul>\n<li>You can now supply a custom link path for the image to point to.<\/li>\n<\/ul>\n\n<h4>1.8<\/h4>\n\n<ul>\n<li>If a description is supplied to the image within WP that will be inserted as the image's alt attribute.<\/li>\n<\/ul>\n\n<h4>1.7<\/h4>\n\n<ul>\n<li>Added image_order option after a request by Steve.<\/li>\n<\/ul>\n\n<h4>1.6.1<\/h4>\n\n<ul>\n<li>Forgot to remove my testing comment &amp; cleaned the header a litle. Thanks to Steve for pointing out the bug.<\/li>\n<\/ul>\n\n<h4>1.6<\/h4>\n\n<ul>\n<li>Added ability to show the full size image if wanted. Suggested by Brian Wood.<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Added the ability to choose an image that is not attached to the current post defined in the post loop.<\/li>\n<\/ul>\n\n<h4>1.4.2<\/h4>\n\n<ul>\n<li>Fixed another flaw in the width &amp; height decision system.<\/li>\n<\/ul>\n\n<h4>1.4.1<\/h4>\n\n<ul>\n<li>Fixed flaw in width &amp; height checking for custom fields.<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Added the ability to use a custom width &amp; height.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Added ability to choose a default image to show should there be no image to display.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Added the ability to output a link around the image.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Fixed a stupid mistake. Used strict type check for true.<\/li>\n<\/ul>","raw_excerpt":"The Attached Image is a simple plugin that packs quite a punch. It shows the first image attached to the current post.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/4291","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=4291"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/veneficusunus"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=4291"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=4291"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=4291"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=4291"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=4291"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=4291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}