@feoconsulting — Thank you. I was having the same problem and using a simple include("header.php")
rather than get_header()
allowed me to pass variables.
For example:
============================
<?
/*
Template Name: Peaceful Powerful You
*/
$pageName = "Peaceful, Powerful You!";
$sectionName = "peaceful";
include("header.php");
?>
This code allowed me to pass the $pageName and $sectionName variables into the header. Using get_header()
did not allow me to pass the variables.