Custom Templates from Theme (IMPORTANT INFO)
-
Hey Guys,
Since the latest update (1.9.2; probably the [download] shortcode improvment) the custom templates loaded from theme are not working properly and causing the website to break. I for myself haven’t even received an error message (even WP_DEBUG is active).
But I found that the templates within the plugin are looking different and I noticed the missing globalized $dlm_download variable – and that is exactly the issue. Templates are now getting the associated data without the need to globalize the $dlm_download variable. Unfortunately this hasn’t been communicated properly by the developers thus it is an important change.
So if you run into this issue, just open up your custom download templates from within your theme (something like content-download-[slug].php) and remove the
global $dlm_download
Hope that helps someone.
Best,
Joe
- The topic ‘Custom Templates from Theme (IMPORTANT INFO)’ is closed to new replies.