{"id":5798,"date":"2009-06-07T14:01:42","date_gmt":"2009-06-07T14:01:42","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/get-image-from-post\/"},"modified":"2017-07-13T17:55:42","modified_gmt":"2017-07-13T17:55:42","slug":"get-image-from-post","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/get-image-from-post\/","author":15689690,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2017.08.13","stable_tag":"trunk","tested":"4.8.0","requires":"4.0.0","requires_php":"","requires_plugins":"","header_name":"Get Image from Post","header_author":"Hors Hipsrectors","header_description":"","assets_banners_color":"","last_updated":"2017-07-13 17:55:42","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":6424,"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":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[74],"plugin_tags":[2845],"plugin_category":[50],"plugin_contributors":[142289],"plugin_business_model":[],"class_list":["post-5798","plugin","type-plugin","status-publish","hentry","plugin_section-adopt-me","plugin_tags-adopt-me","plugin_category-media","plugin_contributors-horshipsrectors","plugin_committers-klickonit"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/get-image-from-post.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>** this plugin is no longer being update. Please feel free to adopt me! **<\/p>\n\n<p>This is a simple plugin which allows users to return an image from the related post.<\/p>\n\n<!--section=installation-->\n<p>To install the plugin, please upload the folder to your plugins folder and active the plugin.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><p>To install the plugin, please upload the folder to your plugins folder and active the plugin.<\/p><\/dd>\n<dt>How do I display the results?<\/dt>\n<dd><p>Insert the following code into your WordPress theme files:<\/p><\/dd>\n<dt>General results<\/dt>\n<dd><p>Without passing any parameters, the plugin will return ten results or fewer depending on how many posts you have.<\/p>\n\n<p>horshipsrectors_get_image_from_post();<\/p><\/dd>\n<dt>Altering the before and after values<\/dt>\n<dd><p>By default the plugin wraps your code in list item (&lt;li&gt;) tags but you can specify how to format the results using the following code:<\/p>\n\n<p>horshipsrectors_get_image_from_post('before=&lt;p&gt;&amp;after=&lt;\/p&gt;');<\/p><\/dd>\n<dt>Adding a Link<\/dt>\n<dd><p>If you'd like to link to the post (remember it's not live yet) you can do so by calling:<\/p>\n\n<p>horshipsrectors_get_image_from_post('link=true');<\/p><\/dd>\n<dt>Which image?<\/dt>\n<dd><p>You can specify which image is returned using the code:<\/p>\n\n<p>horshipsrectors_get_image_from_post('image=2');<\/p><\/dd>\n<dt>Strip Attributes<\/dt>\n<dd><p>If you would like to strip the attributes such as width and height from the returned value:<\/p>\n\n<p>horshipsrectors_get_image_from_post('strip=true');<\/p><\/dd>\n<dt>Echo vs. Return<\/dt>\n<dd><p>Finally, if you'd like to copy the results into a variable you can return the results as follows:<\/p>\n\n<p>horshipsrectors_get_image_from_post('show=false');<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>renamed function to be more compatible.<\/li>\n<li>tested and optimized in WordPress 3.2<\/li>\n<li>added test to determine in images existed<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>official release<\/li>\n<li>added strip attribute<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>minor fixes for wordpress new admin<\/li>\n<\/ul>","raw_excerpt":"Allows users to fetch an image from a post within the Loop.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/5798","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=5798"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/klickonit"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=5798"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=5798"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=5798"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=5798"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=5798"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=5798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}