Hello all
I'm developing a simple plugin to show some social icons based on options. I have used if statements successfully before now with no issue. The following code is causing me problems:
<?php if ( get_option('sd_facebook_visible') ) {
echo '<li><a href="' . get_option('sd_facebook') . $linkcontent['facebook'] . '</a></li>';
} ?>
I have done var_dump(get_option('sd_facebook_visible'));
which returns the following.
string(1) "1"
It is a checkbox on my options page. No matter what state the checkbox is it just wont show any ideas?
Many Thanks