I have a Custom Field style field that's a Radio Button type [ screenshot http://l.ssktn.com/8QDc ] which ends up putting a field in the DB with a meta_key under licensed of either a 0 or 1.
When I try and pull that info into the single post page looks like this [ screenshot if below doesn't work http://l.ssktn.com/ByNq ] :
<?php $mylicensed = get_post_meta($post->ID,'licensed',true);
if ($mylicensed == 1) {
echo "No";
} elseif ($mylicensed == 0) {
echo "Yes";
} else {
echo "Contact for Details";
}
?>
But when the client goes into the WordPress backend and tries updating the details on the post and changes it to the opposite (0 or 1) it doesn't actually save the updated change. They click update on the post and/or update on the custom field - it doesn't save. [ screenshot http://l.ssktn.com/bhTB ]