fist of all set radio two radio button and give a name related like “cf_current_list” and have you set save button if yes then
set code in functions.php file
like
if(isset($_REQUEST['buuton_nm'])){
if ( get_option( cf_current_list ) !== false ) {
// The option already exists, so we just update it.
update_option( cf_current_list, $_REQUEST['radio_btn_nm'] );
} else {
// The option hasn't been added yet. We'll add it with $autoload set to 'no'.
$deprecated = null;
$autoload = 'no';
add_option( cf_current_list, $_REQUEST['radio_btn_nm'], $deprecated, $autoload );
}
}
try this code