You can just add: [code] global $wp, $foo, $bar; [/code] .. just before you include. So then your essentially adding the global declarations missing from Wordpress. Although it took about 3 to 4 hours of debugging for me to work that out! But my rant above was more about the gotcha it's self, how variables are presumed to be global in one place and not in another. Especially to point out that it's not the same behaviour you get in other languages. This post is from -- http://socoder.net/index.php?topic=2758