{"id":28584,"date":"2014-03-27T06:29:52","date_gmt":"2014-03-27T06:29:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/post-attached-media-downloads\/"},"modified":"2017-11-12T11:00:16","modified_gmt":"2017-11-12T11:00:16","slug":"post-attached-media-downloads","status":"closed","type":"plugin","link":"https:\/\/en-gb.wordpress.org\/plugins\/post-attached-media-downloads\/","author":7337072,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.2","stable_tag":"1.2.2","tested":"4.9.29","requires":"3.9.0","requires_php":"","requires_plugins":"","header_name":"Post Attached Media Downloads","header_author":"Clorith","header_description":"","assets_banners_color":"","last_updated":"2017-11-12 11:00:16","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=8VLNZ3434PBZQ","header_plugin_uri":"http:\/\/wordpress.org\/plugins\/post-attached-media-downloads\/","header_author_uri":"http:\/\/www.clorith.net","rating":5,"author_block_rating":0,"active_installs":70,"downloads":4564,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>Fix for posts using the plugin shortcode without any available downloads<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"3"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.1","1.2","1.2.1","1.2.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"882787","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"882787","resolution":"2","location":"assets"}},"screenshots":{"1":"The media downloads list under the content editor","2":"The shortcode output in a post"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2264,568,84,86,80],"plugin_category":[43,50],"plugin_contributors":[79713],"plugin_business_model":[],"class_list":["post-28584","plugin","type-plugin","status-closed","hentry","plugin_tags-attachment","plugin_tags-download","plugin_tags-media","plugin_tags-post","plugin_tags-shortcode","plugin_category-customization","plugin_category-media","plugin_contributors-clorith","plugin_committers-clorith"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/post-attached-media-downloads.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/post-attached-media-downloads\/assets\/screenshot-1.png?rev=882787","caption":"The media downloads list under the content editor"},{"src":"https:\/\/ps.w.org\/post-attached-media-downloads\/assets\/screenshot-2.png?rev=882787","caption":"The shortcode output in a post"}],"raw_content":"<!--section=description-->\n<p>Add media to posts and pages (even Custom Post Types!) to quickly and easily generate download lists for your content.<\/p>\n\n<h4>Features include<\/h4>\n\n<ul>\n<li>Simple per-post management of downloadable media<\/li>\n<li>Use the familiar WordPress media screen to upload or add files<\/li>\n<li>Use a single shortcode, <code>[pamd]<\/code>, to add downloads to your content<\/li>\n<li>Advanced users may call functions directly in their themes to implement download areas outside the post content<\/li>\n<\/ul>\n\n<h4>Advanced use<\/h4>\n\n<p>If you wish to make use of media downloads in your theme, you can call the <code>get_downloads()<\/code> function directly in the following way;<\/p>\n\n<pre><code>$pamd-&gt;get_downloads( $postID, $echo, $return_format, $target )\n<\/code><\/pre>\n\n<p>All parameters are optional, and if no downloads are found the function will return false. The parameters control the following;<\/p>\n\n<p><strong>$postID<\/strong> <em>integer<\/em><\/p>\n\n<p>The ID of the post you wish to fetch, if none is provided the id form The Loop will be used<\/p>\n\n<p><strong>$echo<\/strong> <em>boolean<\/em><\/p>\n\n<p>Should the content be echoed or returned<\/p>\n\n<p><strong>$return_format<\/strong> <em>string<\/em><\/p>\n\n<p>What format should the list be returned in, the default is an unordered list<\/p>\n\n<ul>\n<li><code>array<\/code> returns an array of the media<\/li>\n<li><code>table<\/code> returns a table with the media<\/li>\n<li><code>pamd<\/code> (default) returns an unordered list with the media<\/li>\n<\/ul>\n\n<p><strong>$target<\/strong> <em>string<\/em><\/p>\n\n<p>This attribute is only used if you are returning a table or the default behavior is left, and will determine the target attribute of the link<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>post-attached-media-downloads<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Find the <code>Media Downloads<\/code> box under the content editor when writing your posts or pages<\/li>\n<li>Use the <code>[pamd]<\/code> shortcode in your post where ever you want the list of downloads to appear<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Upload the <code>post-attached-media-downloads<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Find the <code>Media Downloads<\/code> box under the content editor when writing your posts or pages<\/li>\n<li>Use the <code>[pamd]<\/code> shortcode in your post where ever you want the list of downloads to appear<\/li>\n<\/ol><\/dd>\n<dt>Can I use this plugin on multisites?<\/dt>\n<dd><p>Yes, the plugin uses post meta so it doesn't matter what setup you use<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.2<\/h4>\n\n<ul>\n<li>Fix text domains<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Updated the minimum requirement to WordPress 3.9 with the introduction of context buttons for the editor<\/li>\n<li>Modified the behavior of the <code>get_downloads<\/code> function to return <code>false<\/code> if no downloads are found<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Added context button to the editor<\/li>\n<li>Added support for changing link targets<\/li>\n<li>Tested with the upcoming WordPress 4.0<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Tested with WordPress 3.9<\/li>\n<li>Re-ordering download lists by drag and drop<\/li>\n<li>Ability to edit download labels<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fix warning output showing on post pages if no files are added<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Easily add media downloads to posts and pages","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/28584","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=28584"}],"author":[{"embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/clorith"}],"wp:attachment":[{"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=28584"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=28584"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=28584"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=28584"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=28584"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=28584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}