Ah, so get_field
does not output the value, to do that you’ll need to either echo it or use the_field
instead:
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php echo get_field('employee_title'); ?>
or
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_field('employee_title'); ?>
For doing conditional fields you’ll just need to wrap it in a conditional like:
<?php if ( $linkedin = get_field( 'linkedin' ) ): ?>
<a href="<?php echo $linkedin; ?>">View LinkedIn</a>
<?php endif; ?>