Yes, but how do I set the vars
$wpheader and $wpfooter
equal to the generated content from
./templates/wp_header.php
From looking at
http://uk.php.net/function.include
return.php
<?php
$var = 'PHP';
return $var;
?>
testreturns.php
<?php
$foo = include 'return.php';
echo $foo; // prints 'PHP'
?>
but when I do
<?php
$wpheader = include('./templates/wp_header.php');
$wpfooter = include('./templates/wp_footer.php');
?>
It just outputs the two php files automatically rather than waiting till $wpheader and $footer in the template header and footer html files