Title: Short code in template
Last modified: August 24, 2016

---

# Short code in template

 *  Resolved [butred77](https://wordpress.org/support/users/butred77/)
 * (@butred77)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/short-code-in-template/)
 * Hello , sorry for my bad English .
 * I use wp – Downloadmanager many years .
 * I would like to insert a shortcode inside the template and modify all downloads
   site . it’s possible?
 * Example : [ to_like ] [ download id = ” 525 ” ] [ / to_like ]
 * thanks ,
    Antonio
 * [https://wordpress.org/plugins/wp-downloadmanager/](https://wordpress.org/plugins/wp-downloadmanager/)

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

 *  Thread Starter [butred77](https://wordpress.org/support/users/butred77/)
 * (@butred77)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/short-code-in-template/#post-6039459)
 * Hello , I would like to include in all published download the shortcode [ to_like][
   download id = ” * ” ] [ / to_like ]
 * What should I put in the file function.php ?
 * thanks
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/short-code-in-template/#post-6039606)
 * Nope that is not possible. It doesn’t support wildcard.
 * Closest you can do is to display the category
 * `[download category="1"]`
 *  Thread Starter [butred77](https://wordpress.org/support/users/butred77/)
 * (@butred77)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/short-code-in-template/#post-6039703)
 * I partially solved by inserting this line in my file function.php
 * add_filter ( ‘ download_embedded ‘ , ‘ do_shortcode ‘ ) ;
 * but it only works if the page is only a download or work with the first download
   of a list

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

The topic ‘Short code in template’ is closed to new replies.

 * ![](https://ps.w.org/wp-downloadmanager/assets/icon.svg?rev=978031)
 * [WP-DownloadManager](https://wordpress.org/plugins/wp-downloadmanager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-downloadmanager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-downloadmanager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-downloadmanager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-downloadmanager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-downloadmanager/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 3 replies
 * 2 participants
 * Last reply from: [butred77](https://wordpress.org/support/users/butred77/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/short-code-in-template/#post-6039703)
 * Status: resolved