$GLOBALS variable in wordpress to access a value across templates?

You can use the Transient API to do that sort of thing.

Related Questions