{"id":5559,"date":"2009-05-16T22:14:45","date_gmt":"2009-05-16T22:14:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/article-photo\/"},"modified":"2009-05-16T23:17:16","modified_gmt":"2009-05-16T23:17:16","slug":"article-photo","status":"publish","type":"plugin","link":"https:\/\/srd.wordpress.org\/plugins\/article-photo\/","author":1757349,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"1.0","tested":"2.7.1","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"Article photo","header_author":"Chris Northwood","header_description":"","assets_banners_color":"","last_updated":"2009-05-16 23:17:16","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/article-photo\/","header_author_uri":"http:\/\/www.pling.org.uk\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":5072,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"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.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[83,133,163,86,166],"plugin_category":[50],"plugin_contributors":[83143],"plugin_business_model":[],"class_list":["post-5559","plugin","type-plugin","status-publish","hentry","plugin_tags-admin","plugin_tags-image","plugin_tags-images","plugin_tags-post","plugin_tags-posts","plugin_category-media","plugin_contributors-chrisnorthwood","plugin_committers-chrisnorthwood"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/article-photo.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin adds a form to your post screen that allows you to upload an image to go with your blog post. You can then use <code>the_article_image()<\/code> function in your theme to show the image whereever you want on your theme, at whatever size (dynamically rescaled and cached using ImageMagick so no dodgy browser rescaling or sending huge photos out).<\/p>\n\n<p>An example of it in use is on http:\/\/www.nouse.co.uk\/, where the photo alongside each post is attached, and then shown on the front page, and on the single page itself in the theme.<\/p>\n\n<!--section=installation-->\n<p>Make sure you're using PHP 5 and the ImageMagick extension installed.<\/p>\n\n<p>Once the plugin is active, you use <code>the_article_image($size);<\/code> function, which echoes an <code>img<\/code> tag for the image and caption associated with that article, at the width defined by the <code>$size<\/code> parameter. If there is no image, nothing is returned.<\/p>\n\n<p>Other functions include a <code>get_the_article_img($size)<\/code> variant, which returns, rather than echoes the <code>img<\/code> tag. Also, <code>the_article_photo_caption()<\/code> and <code>get_the_article_photo_caption()<\/code> which get the caption associated with that article. <code>get_the_article_photo($size)<\/code> works like <code>get_the_article_img($size)<\/code> but just returns a URL, rather than an <code>img<\/code> tag, and <code>the_article_photo($size)<\/code> returns the URL to the image, or if no image exists, to a placeholder image in the template directory called <code>img\/box.png<\/code>.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>I get errors when the plugin is loaded<\/dt>\n<dd><p>Ensure that the ImageMagick PHP extension is installed.<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"This plugin adds a form to your post screen that allows you to upload an image to go with your blog post. You can then use the_article_image() functio &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/5559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=5559"}],"author":[{"embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/chrisnorthwood"}],"wp:attachment":[{"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=5559"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=5559"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=5559"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=5559"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=5559"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/srd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=5559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}