I disabled all of the other plugin except ACF Pro but nothing changed. I don’t thing anything has been updated in the recent days. No, no other plugin uses the gallery field.
I have ACF 5.3.2.2 and WP 4.4 installed.
What I also tried is creating a new gallery field in the same field group and when I added images to it, it works fine.
Any idea what can cause this?
Now I found out what caused this error – I have a custom post type named “order” – when I rename it to like “orders”, everything works fine again.
When createing the image type field you can choose the return value – what did you choose there?
I disabled all other plugins, downgraded to 5.0.8, disabled and enabled again the ACF Pro plugin but all of this doesn’t solve my issue.
Any ideas how to fix this?
ok, when it’s an image field, try the following
while ( have_rows('bkg_slide_gallery') ) : the_row();
$image = get_sub_field('image');
echo '<img src="'. $image['url'] .'" />';
endwhile;
Hi,
if you use the_sub_field()
echo is not necessary.
Is image a text field or an image field?