How to put an “include” inside a “do_shortcode”?
You won’t be able to concatenate an include as it doesn’t return a string. What you could do is store that include content in a variable, and then concatenate. ob_start(); include ‘incMac.php’; $include_content = ob_get_clean(); echo do_shortcode( ‘[student]’ . $include_content . ‘[/student]’ ); ob_start tells php to store the output from the script in an … Read more