Created
June 30, 2016 15:03
-
-
Save joe-dempsey/0f152099a318bb48f3233a0d5ddc2d67 to your computer and use it in GitHub Desktop.
acf radio example
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
<!-- here there's a simple example wwith a radio with field id features_website - 2 options --> | |
<?php $var = get_field('features_website'); ?> | |
<?php if( $var == 'web' ){ ?> | |
<p>It's a website...</p> | |
<?php } else if( $var == 'ecommerce' ){ ?> | |
<p>It's an ecommerce website...</p> | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment