Ready to get started?Download WordPress

Plugin Directory

Download Shortcode

Allows you to wrap file links in a shortcode that will force a download when clicked.

Which file formats does this work with?

Currently, this plugin can force downloads for pdf, mp4, mp3, gif, png, jpg and jpeg files

When I click links from the front-end, all I get is a 404 Page Not Found error or a white screen. What gives?

There are two things you should check: * There may be a problem with the force-download.php script located in your /wp-content/ directory. Try copying the force-download.php file from download-shortcode/inc/force-download.php to your wp-content directory. * It is also possible you just need to flush your rewrite rules by visiting the Settings > Permalinks screen in your Dashboard.

How can I modify this plugin's default behavior?

Check out the Other Notes section for example functions and filters.

I've uninstalled Download Shortcode but now I have a bunch of broken shortcodes in my posts and pages. How can I hide them?

You can add the following function to your theme's functions.php file to hide all instances of the [download] shortcode in your content.

function hide_download_shortcodes( $attr, $content ) {
add_shortcode( 'download', 'hide_download_shortcodes' );

Requires: 3.0 or higher
Compatible up to: 3.5.2
Last Updated: 2013-2-3
Downloads: 12,533


5 stars
5 out of 5 stars


1 of 2 support threads in the last two months have been resolved.

Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1