How can I include shortcodes within PHP?
In your case do_shortcode should do the trick. If your shortcode is just like [my_shortcode] then try echo do_shortcode( ‘[my_shortcode]’ ); If you have opening and closing then echo do_shortcode( ‘[my_shortcode]Inner text[/my_shortcode]’ );