Hi! I’m using ACF relation field in posts. Admin can search posts and select it by title. Is it possible to show also acf value next to title (maybe some code in functions.php)? Some of my posts have the same title but different acf value (index number) and it would be easier for admin to search in that way 🙂
I’m using pro version.

Thank you, but how to achieve that? My ACF relation field name is “product_accessories”. I would like to show field “product_index” next to title.
I try to check how it works with, but with no success:
add_filter('acf/fields/post_object/result/name=product_accessories', 'my_acf_fields_post_object_result', 10, 4);
function my_acf_fields_post_object_result( $text, $post, $field, $post_id ) {
$text .= ' (' . $post->post_type . ')';
return $text;
}
Is your relationship field a sub field of a repeater, flex field or group field?
Just simple relationship field. It is not a part of repeater, group, etc.
Then I don’t see any reason why your code is not working. Where have you put this code?
In functions.php
What my sample code should show in admin?
It should show the title of the post followed by the post type of that post in parenthesis.