-
-
Save eyecandy91/9bd4fa9133aa984ef52ea403a6f7ea50 to your computer and use it in GitHub Desktop.
show data IF checkbox is checked using the theme options plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remember to make the option field 'std' => '1', | |
<?php if ( 1 == of_get_option('app_on_off') ) { ?> | |
<p>checked</p> | |
<?php } else { ?> | |
<p>unchecked</p> | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment