I have a custom field that's a radio button with 3 choices (yes, no, other).
What I'd like to do is the following:
[If custom field value is yes]
Display something here
[elseIf custom field value is no]
Display something here
[elseIf custom field value is other]
[else]
The code I have thus far isn't working, here it is.
<?php
global $wp_query;
$postid = $wp_query->post->ID;
$can_download = get_post_meta($postid, 'enable_downloads', true);
if ($can_download == 'yes') { ?>
<?php } elseif ($can_download == 'no') { ?>
<?php } elseif ($can_download == 'other') { ?>
<?php } else { ?>
<?php } ?>
No matter what it's just defaulting to yes, I can't figure it out, not sure if this is even the correct way to approach.