I'm using this to pull in a conditional value in Wordpress with advanced custom fields:
<?php if( in_array( 'Branding', get_field('services_provided') ) ) {
echo '<div class="branding"><div class="text"><h2>Branding</h2>' . get_field('services_text_branding') . '</div>';
if( have_rows('branding_images_repeater') ):
while ( have_rows('branding_images_repeater') ) : the_row();
?>
<?php if (get_sub_field('branding_images')): ?>
<img src="<?php echo the_sub_field('branding_images'); ?>" alt="" />
<?php endif; ?>
<?php endwhile; else : endif; } ?>
<?php echo '</div> <!--end branding -->;' ?>
However I am receiving this error: PHP Parse error: syntax error, unexpected '(' in /nas/wp/www/cluster-3024/omniaagency/wp-content/themes/omniaagency/page-case-study-single.php on line 29, referer: http://www.mydomainname.com/
And I am unsure what I am doing wrong.
Does anyone one know how I can fix this?
Branding
' . get_field('services_text_branding') . '