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= )
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 38Yea, verily, there is no database table whose name include ahm.
- The topic ‘Short code for post link?’ is closed to new replies.