ACF - Echo some variables

<?php $field = get_field_object('career_business'); $value = get_field('career_business'); $label = $field['choices'][ $value ]; ?> <p class="ir <?php echo the_field('career_business'); ?>"><?php echo $label; ?></p> <p> Location: <?php the_field('career_location'); ?><br /> Reference: <?php the_field('career_reference'); ?><br /> Contact: <a href="mailto:<?php the_field('career_contact_email'); ?>"><?php the_field('career_contact'); ?></a> </p>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.