$args = array(
'post_type' => 'locations',
'posts_per_page' => -1
$query = new WP_Query($args);
// output posts to see if they are returned by the query
echo '<pre>'; print_r($query->posts); echo '</pre>';
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users