ccurtin
2/12/2015 - 12:57 AM

ACF is checkbox checked

ACF is checkbox checked

<?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;
        }
?>
<?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 = '';
            }
        }
?>