Hot answers tagged theme-options
The problem is that the default Editor role does not have enough capabilities to change theme options. You are allowing users with 'moderate_comments' capabilities to view the page. That in itself is not enough. When the user attempts to update, it fails because the user does not have the proper capabilities, hence the 'Cheatin’ uh?' message. I believe you ...
I found a solution!!! <li class="tweat"> <a href="<?php $globalOptions = get_option('global_options_arraykey'); echo $globalOptions['twitterid'];?>">Visit our twitter Account</a> </li> I got it from this site: Get Option for an Element in an array - WordPress-Hackers
Sorry for being dense, you need to grab the object, overwrite the key you want to set and then save the updated object as the new option: $my_plugin_settings = get_option('my_plugin_settings'); $my_plugin_settings->object_key = 'new_value'; update_option('my_plugin_settings', $my_plugin_settings);
Only top voted, non community-wiki answers of a minimum length are eligible