Home › Forums › Add-ons › Repeater Field › Unable to query an image repeater field properly › Reply To: Unable to query an image repeater field properly
Hi @rpk
Thanks for the code. The issue may be as simple as changing:
$projectimages = the_sub_field('pro_impressions');
to
$projectimages = get_sub_field('pro_impressions');
Make sure all the field names are correct, and this should work just fine.
As for the wp_reset_postdata()
function, this is a WP function only to be used after a custom WP_Query loop, not a repeater field loop.
Thanks
E
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.