Home › Forums › Add-ons › Gallery Field › Empty array when ordering posts by meta_value › Reply To: Empty array when ordering posts by meta_value
I am also seeing the same behaviour after upgrading to Gallery 1.1.0 and ACF 4.3.0.
With add_action('pre_get_posts'...
called in functions.php, get_field
for a gallery field returns an empty array.
If I comment out the pre_get_posts action everything works as expected.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.