Post Attached Media Downloads

Add media to posts and pages (even Custom Post Types!) to quickly and easily generate download lists for your content.
Features include
- Simple per-post management of downloadable media
- Use the familiar WordPress media screen to upload or add files
- Use a single shortcode,
[pamd], to add downloads to your content - Advanced users may call functions directly in their themes to implement download areas outside the post content
Advanced use
If you wish to make use of media downloads in your theme, you can call the get_downloads() function directly in the following way;
$pamd->get_downloads( $postID, $echo, $return_format, $target )
All parameters are optional, and if no downloads are found the function will return false. The parameters control the following;
$postID integer
The ID of the post you wish to fetch, if none is provided the id form The Loop will be used
$echo boolean
Should the content be echoed or returned
$return_format string
What format should the list be returned in, the default is an unordered list
arrayreturns an array of the mediatablereturns a table with the mediapamd(default) returns an unordered list with the media
$target string
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
Download & install the zip archive
The plugin package installer can be downloaded from the WP2E project tab called “code”.
1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.
2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.
3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.
- Give a name to your project
- Download the Installer Package
- Install & activate the plugin locally
- Install the suggested dependencies
Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.



