Problem: I would like to display the title of the post selected in a post reference field using PHP, but when I output the value of types_render_field I get a number.
Solution: This number is the referenced post ID. You can use it to get the post title with the WordPress function get_the_title: