Retrieving single options array and using it
-
I am designing theme options page and storing it under
register_setting( 'inspire-option-group', 'inspire-options' );and inspire-options contains all the theme variable such as logo, favicon, twitter link etc. As i understand i pull out of the array using get_options
$settings = get_option('inspire-options');and then individual variables
echo $settings['logo'];My question is how do i make this $settings array global and use throughout the theme. I tried using global $settings and it is not working.
The topic ‘Retrieving single options array and using it’ is closed to new replies.