Title: Shortcode Naming
Last modified: July 27, 2022

---

# Shortcode Naming

 *  Resolved [sonfisher](https://wordpress.org/support/users/sonfisher/)
 * (@sonfisher)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/shortcode-naming/)
 * I am moving lots of code from my theme’s functions.php file into WPCode Snippets.
   I have several shortcodes that appear many times throughout the website. Is there
   a way to use the original shortcodes or must I change them all to follow your
   syntax?

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

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/shortcode-naming/#post-15862396)
 * Hi [@sonfisher](https://wordpress.org/support/users/sonfisher/),
 * If the shortcodes are defined in the functions.php file and you copy them into
   WPCode with the Code Type set to PHP and set them to “Auto-insert + Run Everywhere”
   you shouldn’t have to change anything.
 * The shortcode option in the Add Snippet screen makes it easy for you to use a
   snippet’s output as a shortcode without having to write the shortcode part of
   the code.
 *  Thread Starter [sonfisher](https://wordpress.org/support/users/sonfisher/)
 * (@sonfisher)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/shortcode-naming/#post-15865119)
 * I think you have really missed the point of my question.
 * The existing shortcodes are context/position sensitive. Just auto inserting outside
   of the context would defeat the purpose for which it is intended.
 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/shortcode-naming/#post-15872720)
 * Hi [@sonfisher](https://wordpress.org/support/users/sonfisher/),
 * The auto-insert option used with Run Everywhere (for PHP snippets) will just 
   make sure the PHP code used to define the shortcodes is executed everywhere so
   that they can be used as you were using them before.
    That option essentially
   makes the code act similar to functions.php in that PHP code becomes available
   to the whole site.
 * If that still doesn’t apply to your use-case maybe you can share the PHP code
   of one of the shortcodes so I can try to understand the context better.
 * Thanks,
    Mircea

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

The topic ‘Shortcode Naming’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/shortcode-naming/#post-15872720)
 * Status: resolved