I just came across this thread which helped me figure out what happened. But I found a simpler solution. You can change the position of the panel also by drag and drop. But if there are no other fields under the main content, you can’t move it there. The trick is to add another field group (can be empty) so something gets shown under the main content. Then you can drag and drop the field group which got stuck in the sidebar back to the center.
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?
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.