Skip to content

Instantly share code, notes, and snippets.

@fosturgh
Created April 9, 2015 08:58
Show Gist options
  • Save fosturgh/958e0e2d9d9b11076fcf to your computer and use it in GitHub Desktop.
Save fosturgh/958e0e2d9d9b11076fcf to your computer and use it in GitHub Desktop.
<?php if(get_field('some-field', 'option') == 'on') : ?><!–Output if toggled 'on'–>
<?php else : ?>
<!–Output if toggled 'off'–>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment