What are you doing inside your pre_get_posts
action? I don’t believe it’s the pre_get_posts
action that’s causing the problem. If I just have it echo out some text, get_field
returns an array of images as expected. It’s when I modify the query by adding $query->set( 'meta_key', date_published' );
that I run into a problem.