I have a 'relationship' custom field that allows you to select multiple values and display them via
<?php $post_objects = get_field('field');
if($post_objects!=''){ ?>
<?php foreach( $post_objects as $post): ?>
<?php setup_postdata($post); ?>
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>,
</a>
<?php endforeach; ?>
<?php wp_reset_postdata(); ?>
This works for now but is not very pretty as it returns the values as "Value, Value, Value,". What I would like it to output is...
1 Value = "Value"
2 Values = "Value & Value"
3 or more Values = "Value, Value & Value"
"