sy4mil/Options-Framework — Issue #24: Proper global usage?
Author: richcoy
Created: 2012-02-02 02:13:35+00:00
State: open

I just want to make sure I have this right. :)

1. I should have "global $data" in the header.php file for my theme so that it gets called once on every page.

2. This will then pull all the data from the theme options and I just need to echo it out, calling it by id, or use php to do some logic processing on it.

Is it really pulling all the data on every page load, or is it just pulling whatever is actually used on that page?

Sorry if this is a silly question. I'm a front end designer with limited PHP experience and I want to make sure I'm not messing this up.

Thanks.

Rich