Get all fields inlcuding “ACF” (Advanced Custom Fields) columns in wp_query

The loop doesn’t really contain anything.

It does include methods in order to easily output your data such as the_title(), this is done when calling the_post()

Then, within the loop you’ll be able to use get_the_ID() and get_post_meta() to get your custom fields (including ACF ones).

So if you have retrieved your desired posts from that query then you’ll be able to do this:

<?php while($loop->have_posts()) : $loop->the_post(); ?>   
   <h2><?php the_title(); ?></h2>  
   <?php the_content(); ?>
   <p>My Custom Field: <?php echo get_post_meta(get_the_ID(),'my-custom-field', true); ?>
<?php endwhile; wp_reset_postdata(); ?>

Hope that helps.