currently i was trying to edit my theme when i bumped upon this , it doesn't seem to be working , it is code for radio buttons in wordpress this is my code <?php if (get_option('wp_show_featured') == 'Enable') { ?> test again <?php } ?> PHP: array( "name" => "Show Featured on Index?", "desc" => "Check this box if you want to show featured post on index.", "id" => $shortname."_show_featured", "type" => "radio", "std" => "Disable", "options" => array("Disable", "Enable")), PHP: <?php foreach ($value['options'] as $key=>$option) { $radio_setting = get_option($value['id']); if($radio_setting != ''){ if ($key == get_option($value['id']) ) { $checked = "checked=\"checked\""; } else { $checked = ""; } }else{ if($key == $value['std']){ $checked = "checked=\"checked\""; }else{ $checked = ""; } }?> <input type="radio" name="<?php echo $value['id']; ?>" id="<?php echo $value['id'] . $key; ?>" value="<?php echo $key; ?>" <?php echo $checked; ?> /><label for="<?php echo $value['id'] . $key; ?>"><?php echo $option; ?></label> <?php } ?> PHP: but it does not execute well , i think so the problem is in the first part where i execute it .
What do you get if you just use echo get_option('wp_show_featured');? Also, what are you trying to do and what do you mean it doesn't "execute well"?
it is not a wordpress inbuilt function i am trying to call a featured gallery in my wordpress theme and the function was not working earlier but i found the solutions thnks anyway