I don’t see any reason why this pre_get_posts filter should be effecting a get_field() call for a post object field. Are you sure that it’s this filter that’s causing it? If you disable only this filter did the problem go away?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN