title: Wordpress: Export posts to csv with data from ACF custom fields
body: <p>I'm trying to export my posts from a custom post type to a csv file. The point I'd like to get back at later is that my posts have custom fields created using the Advanced Custom Fields plugin.</p>
  
  <p>I found that this can be done by writing a database query and even found various plugins which could get me all the details. The problem I'm facing is that one of the custom fields in my post is 'Relationship post object' field and whichever method I use to export the posts as CSV give this post object field values as an array. Is there a way to get the actual content as it is outputted on the frontend? </p>