It doesn’t seem to be working. The code I’m using is
function displayStaff(){
echo "Test<br />";
include(dirname(__FILE__) . '/displayStaff.php');
echo "Test2";
}
add_shortcode('displayStaff', 'displayStaff');
The 2nd php file is
<?php
echo "<h1>Hi</h1>";
?>
The Test and Test2 print, but not the Hi. The files are in the same direction.
Thanks for the help.