devinsays / options-framework-theme

An Options Panel Framework to help speed theme development.
http://wptheming.com/options-framework
GNU General Public License v2.0
754 stars 229 forks source link

cannot retrieve the option value if switch to another theme with options framework #184

Closed shizhua closed 9 years ago

shizhua commented 9 years ago

Hi Devin,

For example i have 2 themes with options framework: A and B. There is a logo up-loader for both of the 2 themes lets say the ID are "test_logo". I have activated A first and upload a logo image and save it. It works fine. But if I switch to theme B, no matter what images i upload to the 'logo' option, it will only still use the logo image I previously uploaded in theme A.

I am using of_get_option('test_logo') in both themes.

Can you tell how I can solve this?

Thanks, Leo

shizhua commented 9 years ago

Ok, i have fixed this. It's because I forgot to include the options.php file earlier from functions.php