I'm not sure if this is possible - but checking before re-writing the template.
I've extended wp_query to allow for a geocode/location search to be performed. This is working in itself and returning posts in a nearest to search point first order.
In the query generated now by wp_query it's calculating the distance in miles away from the search point and returning this
My colleague who's built the results template has used ACF - so is looping through the list using:
<?php while ( have_posts() ) : the_post(); ?>
This 'distance' value is not being returned when using the usual ACF method of
<?php echo the_field('distance'); ?> which makes sense as it's not an ACF or post field, but rather calculated in the wp_query...
Is there a good way of accessing values from the query, but not ACF fields, inside this ACF loop - or am I better rewriting to manually look through the query results without the ACF methods?