Last active
October 7, 2016 17:54
-
-
Save ccurtin/15e9cbae9539078ce35d to your computer and use it in GitHub Desktop.
ACF is checkbox checked
This file contains hidden or 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
| <?php | |
| if (get_field('allow_full_width_image')) { | |
| $values = get_field('allow_full_width_image'); | |
| if (in_array("yes", $values)) { | |
| $isfullwidth = ' style="width:100%;hight:auto;"'; | |
| } else { | |
| $isfullwidth = ''; | |
| } | |
| } | |
| ?> |
This file contains hidden or 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
| <?php | |
| if (get_field('is_this_a_guest_blog_post')) { | |
| $values = get_field('is_this_a_guest_blog_post'); | |
| if ("yes" === $values) { | |
| $isGuestBlog = ''; | |
| } else { | |
| $isGuestBlog = ''; | |
| } | |
| echo $isGuestBlog; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment