Title: How to use a SHORTCODE as a function
Last modified: August 21, 2016

---

# How to use a SHORTCODE as a function

 *  [BackY](https://wordpress.org/support/users/backy/)
 * (@backy)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/how-to-use-a-shortcode-as-a-function/)
 * Hey guys, I don’t know if I wrote the correct thing on the title, but here’s 
   what I want:
 * ‘Feedburner Email Subscription’
    `http://wordpress.org/plugins/feedburner-email-
   subscription/`
 * offers a shortcode so you can call the plugin to show, wherever you want to… 
   but I can only use it on Posts, Pages, or Sidebars.
    Whenever I try to use that
   code in somewhere in Single.php (I have a specific place I want it to be shown),
   it doesn’t show, instead, only the shortcode text appears.
 * Is there a way around this?

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/how-to-use-a-shortcode-as-a-function/#post-4829988)
 * generally, to use shortcode in templates, try:
 *     ```
       <?php echo do_shortcode( '[your_shortcode]' ); ?>
       ```
   
 * or possibly:
 *     ```
       <?php echo apply_filters( 'the_content', '[your_shortcode]' ); ?>
       ```
   
 * [http://codex.wordpress.org/Shortcode_API](http://codex.wordpress.org/Shortcode_API)
   
   [http://codex.wordpress.org/Function_Reference/do_shortcode](http://codex.wordpress.org/Function_Reference/do_shortcode)
 *  Thread Starter [BackY](https://wordpress.org/support/users/backy/)
 * (@backy)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/how-to-use-a-shortcode-as-a-function/#post-4830003)
 * PERFECT!
    thank you so much.

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

The topic ‘How to use a SHORTCODE as a function’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [BackY](https://wordpress.org/support/users/backy/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/how-to-use-a-shortcode-as-a-function/#post-4830003)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
