Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    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.