I have a header.php with some custom php to find out which group a page belongs to, i save this gruop name into a var.
When using get_header(); in my main template file i cannot read the content of that var while when using include (TEMPLATEPATH . “/header.php”) i have the value at hand.
get_header calls do_action which is a function i do not understand with my current knowledge of WordPress.
This is not a “real” problem as i obviously can use “include” but i would like to understand why this happens. Someone willing and capable of explaining this?
- The topic ‘Difference between get_header() and include (TEMPLATEPATH . “/header.php”);’ is closed to new replies.