There is a filter in ACF that lets you modify the post title text that is displayed in a repeater field
Why would this be useful?
Imagine you have a lot of posts, probably in a custom post type, that all have either similar or the same post titles. Having them load up in an ACF relationship field would present you a list of posts that all look the same. You would have a hard time differentiating between each post and makes the process of using the relationship field really cumbersome. The filter will only affect the field output in the backend.
Below is my version, where I was able to get a couple of text field values and the custom taxonomy the post was in to help me identify which posts were which. The client had lots of posts named the same but were identifiable by which taxonomy they were in and their location and budget (construction projects).
// https://www.advancedcustomfields.com/resources/acf-fields-relationship-result/ function my_relationship_result( $title, $post, $field, $post_id ) { // load a custom field from this $object and show it in the $result $location = get_field('field_5cc83448fa4f8', $post->ID); $budget = get_field('field_5d0116386d2df', $post->ID); $terms = get_the_terms( $post->ID, 'project-sectors' ); if ( $terms && ! is_wp_error( $terms ) ) : $draught_links = array(); foreach ( $terms as $term ) { $draught_links[] = $term->name; } $on_draught = join( ", ", $draught_links ); endif; $title .= ' [' . $post->ID . '] [' . $on_draught . ' / ' . $location . ' / ' . $budget . ' ]'; // return return $title; } // filter for every field add_filter('acf/fields/relationship/result/key=field_5cf228020c5b6', 'my_relationship_result', 10, 4);