I use a shortcode on my page like
[abc a="b"]test[/abc]
In my functions.php
add_shortcode('abc', function($atts, $content) {
return $atts['a']." : ".$content;
});
And in my template somewhere
<p><?php echo do_shortcode('[abc]') ?></p>
$atts, $content are always empty.
Everything works fine in the Default template but not in mine.
I really appreciate if anyone can show me how to get it work in my custom template. Thanks