Title: Make shortcode work in code editor?
Last modified: July 8, 2021

---

# Make shortcode work in code editor?

 *  Resolved [jason9j](https://wordpress.org/support/users/jason9j/)
 * (@jason9j)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/make-shortcode-work-in-code-editor/)
 * Hi – just found your plugin. Amazing – thank you.
 * By default, however, shortcodes do not work when used in the WP code editor. 
   Could you possibly suggest a functions.php snippet to enable this, or another
   work around?
 * Many thanks.

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

 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/make-shortcode-work-in-code-editor/#post-14644892)
 * Hi [@jason9j](https://wordpress.org/support/users/jason9j/),
 * Thanks for using Shortcoder.
 * You can insert shortcode in PHP file like below.
    [https://stackoverflow.com/a/19293558/306961](https://stackoverflow.com/a/19293558/306961)
 * `echo do_shortcode('[sc name="mysc"]');`
 * Thanks,
    Aakash
 *  Thread Starter [jason9j](https://wordpress.org/support/users/jason9j/)
 * (@jason9j)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/make-shortcode-work-in-code-editor/#post-14647443)
 * Perfect! Thank you Aakash for one of the most powerful plugins for WordPress.

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

The topic ‘Make shortcode work in code editor?’ is closed to new replies.

 * ![](https://ps.w.org/shortcoder/assets/icon.svg?rev=2222236)
 * [Shortcoder — Create Shortcodes for Anything](https://wordpress.org/plugins/shortcoder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcoder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcoder/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcoder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcoder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcoder/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [jason9j](https://wordpress.org/support/users/jason9j/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/make-shortcode-work-in-code-editor/#post-14647443)
 * Status: resolved