Okay, I am attempting to get this to show right–as for some reason it won’t. I have a radio button, and I want the output to vary according to which option is checked on said radio button.
The problem: It works…however it show’s the “Yes” AND the FontAwesome icon. I only want the content inside the if to show on the page. I have no idea why it’s showing the “Yes” as well. Help?
<?php if (get_field('row_values_and_popups_1_row_value') == 'Yes'): ?>
<i class="fa fa-check" aria-hidden="true"></i>
<?php endif; ?>
<?php if (get_field('row_values_and_popups_1_row_value') == 'No'): ?>
<i class="fa fa-times" aria-hidden="true"></i>
<?php endif; ?>
Maybe there’s something going on elsewhere, but I don’t see anything in that code that would display the content inside both of the if statements. As written only one, or neither of those statements will be true, both cannot be true.