{"id":22758,"date":"2013-04-09T04:47:04","date_gmt":"2013-04-09T04:47:04","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-get-attachments\/"},"modified":"2013-04-09T05:22:43","modified_gmt":"2013-04-09T05:22:43","slug":"wp-get-attachments","status":"closed","type":"plugin","link":"https:\/\/fr.wordpress.org\/plugins\/wp-get-attachments\/","author":8541047,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"trunk","tested":"3.5.2","requires":"1.2.0","requires_php":"","requires_plugins":"","header_name":"WP Get Attachments","header_author":"Robin Gupta","header_description":"","assets_banners_color":"536586","last_updated":"2013-04-09 05:22:43","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.csschopper.com\/","header_author_uri":"http:\/\/www.csschopper.com\/","rating":5,"author_block_rating":0,"active_installs":10,"downloads":1047,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":{"1.0.0 = has updated files":""},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"694250","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1346,22057,170,86],"plugin_category":[50],"plugin_contributors":[89132,80904],"plugin_business_model":[],"class_list":["post-22758","plugin","type-plugin","status-closed","hentry","plugin_tags-attachments","plugin_tags-image-attachments","plugin_tags-page","plugin_tags-post","plugin_category-media","plugin_contributors-robin","plugin_contributors-sparxit","plugin_committers-robinguptasparxtechnologiescom"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-get-attachments_536586.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Many of us need to fetch the image attachments of a post or page and then we have to write code . Here is the plugin to fetch that , just call the function and it will return all image attachments of a post\/page that you can fetch to show image .<\/p>\n\n<p>For more plugins, themes and WordPress support , Please visit <a rel=\"nofollow\" href=\"http:\/\/www.csschopper.com\/\">http:\/\/www.csschopper.com\/<\/a><\/p>\n\n<!--section=installation-->\n<p>Extract the zip file and put wp-get-attachments in wp-content\/plugins\/ directory of your WordPress installation and then activate the Plugin from Plugins page.<\/p>\n\n<p>call following function  if( function_exists( 'wp_get_attachments' ) )   $attachments = wp_get_attachments();  in any of your template file .<\/p>\n\n<p>\n     if( function_exists( 'wp_get_attachments' ) )  $attachments = wp_get_attachments( 101 , 20 , 'Sorry nothing found' ); \n this function accepts following three parameters\n <ul>\n  <li>1. $post_id ( id of the post\/page whoose attachments need to be fetched . if used with in standard wordpress loop then it will use current post id ).<\/li>\n  <li>2. $num_of_attachments ( number of attachments to be fetched , defaults to all attachments of a post )<\/li>\n  <li>3. $no_result_msg ( message to be shown when no attachments is there , defaults is 'No Attachmets found' ) <\/li>\n <\/ul>\n<\/p>\n\n<p><strong>Note: <\/strong>You can call this function with 1,2,3 or none parameters .<\/p>\n\n<!--section=changelog-->\n<p>1.0.0 updated files<\/p>","raw_excerpt":"This plugin is used to fetch the image attachments of a post or page","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/22758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=22758"}],"author":[{"embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/robinguptasparxtechnologiescom"}],"wp:attachment":[{"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=22758"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=22758"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=22758"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=22758"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=22758"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=22758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}