Title: Shortcode
Last modified: August 30, 2016

---

# Shortcode

 *  Resolved [dalan86](https://wordpress.org/support/users/dalan86/)
 * (@dalan86)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/shortcode-359/)
 * Hello
    Please can anyone tell me the short code for using
 * [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-359/#post-6716552)
 * Snippets, don’t have a shortcode by default, as they should be PHP code which
   doesn’t directly produce output like you might have in a plugin or functions.
   php file.
 * If you do want to create a shortcode for a snippet, you can use this template:
 *     ```
       add_shortcode( 'shortcode_name', function () { ?>
   
           SHORTCODE CONTENT
   
        <?php } );
       ```
   
 * Just replace `shortcode_name` with the name of the shortcode tag you want to 
   create and `SHORTCODE CONTENT` with the HTML code or text you want to output.

Viewing 1 replies (of 1 total)

The topic ‘Shortcode’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-359/#post-6716552)
 * Status: resolved