update_post_meta not working in foreach
Doing something like this would help make sure the theme object has been instantiated properly… global $theme_options; if ( (!isset($theme_options) || (!is_object($theme_options)) ) { $theme_options = new My_Theme_Options_Class(); }