figured out the issue, i had to change the following code from…
<?php $posts = get_field('agent'); if( $posts ): ?>
<div class="agents">
<?php foreach( $posts as $p ): // variable must NOT be called $post (IMPORTANT) ?>
to this code….. basically $posts in this section to $agent
<?php $agent = get_field('agent'); if( $posts ): ?>
<div class="agents">
<?php foreach( $agent as $p ): // variable must NOT be called $post (IMPORTANT) ?>