Easily add media downloads to posts and pages
Add media to posts and pages (even Custom Post Types!) to quickly and easily generate download lists for your content.
[pamd], to add downloads to your content
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;
The ID of the post you wish to fetch, if none is provided the id form The Loop will be used
Should the content be echoed or returned
What format should the list be returned in, the default is an unordered list
arrayreturns an array of the media
tablereturns a table with the media
pamd(default) returns an unordered list with the media
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
Requires: 3.9.0 or higher
Compatible up to: 4.2.3
Last Updated: 2015-4-23
Active Installs: 100+
0 of 1 support threads in the last two months have been resolved.
Got something to say? Need help?