• Resolved magestyx

    (@magestyx)


    On the instruction/doc page it says “In both the free and pro versions, our plugin supports external shortcodes.”
    Is there something special that we have to do for that to happen? We’ve tried every method and combination we can find and have now wasted hours. We also tried duplicating the template files like the docs say just to see if we can get something, ANYTHING to work. Nope. In the text area of the emails we have [testshortcode] with something as simple as:

    add_shortcode( ‘testshortcode’, function ( $atts ) {
    echo ‘this worked’;
    } );

    add_shortcode( ‘testshortcode’, function ( $atts ) {
    return ‘this worked’;
    } );

    We’ve tried brackets, double brackets, curly brackets, etc. We also tried add_action code from the docs.
    What are we missing here? Nothing changes the email output whatsoever so far.

    thanks!

Viewing 1 replies (of 1 total)
  • Plugin Support lavendervu2510

    (@lavendervu2510)

    Hi,

    Thank you for reaching out to us.

    In this article, we represent guides to write Custom Shortcodes in WordPress, please follow this part: How to Create Your Custom Shortcode in WordPress and add the code to your theme’s function.php file manually or use a code snippet plugin like the Code Snippets plugin, see this guide.

    add_shortcode( ‘testshortcode’, function ( $atts ) {
    echo ‘this worked’;
    } );

    If you use this type of shortcode [testshortcode], this will be added in the WordPress classic editor like this way.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Shortcodes not working’ is closed to new replies.