Title: Short code for post link?
Last modified: August 22, 2016

---

# Short code for post link?

 *  Resolved [converting2wp](https://wordpress.org/support/users/converting2wp/)
 * (@converting2wp)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/short-code-for-post-link/)
 * I’ve got a fresh install.
 * The shortcode
 * [wpdm_package id=’1871′ ]
 * works fine to show an icon, info about the file, and a link to download it.
 * However, the shortcode
 * [wpdm_direct_link id=’1871′ link_label=’My Link Text’]
 * gives a simpler display (which I prefer) but the link doesn’t work — as others
   have noted it redirects to the home page (and the link itself is [http://mysite.com/?wpdmdl=](http://mysite.com/?wpdmdl=))
 * Is that shortcode (or wpdm_hotlink referenced in the summary) supposed to work?
 * More info:
    The errors in the debug.log file include
 * [09-Dec-2014 18:07:08 UTC] WordPress database error Table ‘mydb.wp_prod7846h_ahm_files’
   doesn’t exist for query select * from wp_prod7846h_ahm_files where id=’1871′ 
   made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.
   php’), include(‘/themes/get-business/single.php’), the_content, apply_filters(‘
   the_content’), call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag,
   call_user_func, wpdm_direct_link
    [09-Dec-2014 18:07:08 UTC] PHP Notice: Undefined
   variable: class in n /home/myuser/mywebroot/wp-content/plugins/download-manager/
   wpdm-core.php on line 380 [09-Dec-2014 18:07:08 UTC] PHP Notice: Undefined variable:
   link_slabel in /home/myuser/mywebroot/wp-content/plugins/download-manager/wpdm-
   core.php on line 38
 * Yea, verily, there is no database table whose name include ahm.
 * [https://wordpress.org/plugins/download-manager/](https://wordpress.org/plugins/download-manager/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [converting2wp](https://wordpress.org/support/users/converting2wp/)
 * (@converting2wp)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/short-code-for-post-link/#post-5561025)
 * PS: I was only looking whether the file would appear to download. It is a PDF
   and I needed the fix from
 * [https://wordpress.org/support/topic/file-corruption](https://wordpress.org/support/topic/file-corruption)
 * to actually have a downloaded file I could use.
 *  Plugin Author [Shahjada](https://wordpress.org/support/users/codename065/)
 * (@codename065)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/short-code-for-post-link/#post-5561046)
 * Sorry, I got the issue with [wpdm_direct_link id=’1871′ link_label=’My Link Text’],
   adjusting it with next update, until then you can use direct download link ( 
   [http://mysite.com/?wpdmdl=ID](http://mysite.com/?wpdmdl=ID) ) manually.
 *  Plugin Author [Shahjada](https://wordpress.org/support/users/codename065/)
 * (@codename065)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/short-code-for-post-link/#post-5561190)
 * Issue fixed, please update to v2.7.7
 *  Thread Starter [converting2wp](https://wordpress.org/support/users/converting2wp/)
 * (@converting2wp)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/short-code-for-post-link/#post-5561297)
 * Updated to 2.7.7
 * wpdm_hotlink is now working (wasn’t recognized as a shortcode before).
 * But there doesn’t seem to be any change in the behavior of wpdm_direct_link so
   your workaround is still needed. The hotlink shortcode is what I want (and your“
   disable resumbable download in the other thread has fixed the file corruption
   problem).
 * So I have what I need for a fairly simple application — but warning others.
 *  Plugin Author [Shahjada](https://wordpress.org/support/users/codename065/)
 * (@codename065)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/short-code-for-post-link/#post-5561299)
 * `wpdm_direct_link` is not required anymore, it is now `wpdm_hotlink`.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Short code for post link?’ is closed to new replies.

 * ![](https://ps.w.org/download-manager/assets/icon-256x256.png?rev=1561688)
 * [Download Manager](https://wordpress.org/plugins/download-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/download-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/download-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-manager/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Shahjada](https://wordpress.org/support/users/codename065/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/short-code-for-post-link/#post-5561299)
 * Status: resolved