I have been working with wp for a while now but just ran into a bug, that I can not fix with the information found in the internet.
I was editing a acf field. When I was finished writing into one of the fields, I mistakenly pressed enter. The page started reloading and all fields were gone. When going to the frontend, everything is displayed properly.
I tried to reactivate my ACF fields via the screen options what did not work. I inserted some code lines into my functions.php. or into the input.css because I thought maybe the right checkbox for the ACF fields to be displayed was missing. Nothing helped. Is there any other way to fix this issue.
thx in advance
greetings
2
Answers
I just come through this problem : for one of my field group, the fields box just disappeared at some point and I had no way no retrieve it thanks to the WordPress Admin interface.
I don’t know the reason why, but it appears that in my case, ACF registered some "unwanted" user meta in my database. (how is the question)
If you look inside your DB at the
usermeta
table content you will probably find some ACF entries like :metaboxhidden_acf-field-group
orclosedpostboxes_acf-field-group
and maybe others…The one causing trouble for me was
meta-box-order_acf-field-group
: I simply deleted the entry (but you can try editing it to remove the reference of your "lost" box) and the problem was solved.Maybe too late to help you, but hope it can still help someone !
##EDIT##
Seems I may have a clue about how the box disappeared
Steps to reproduce :
whatever
post type you havewhatever
post (note : the Gutenberg editor is active on this edit page)meta-box-order_acf-field-group
=a:3:{s:4:"side";s:32:"submitdiv,acf-field-group-fields";s:6:"normal";s:57:"acf-field-group-locations,acf-field-group-options,slugdiv";s:8:"advanced";s:0:"";}
I solved the problem by adding a custom script for the ACF with delete class closed on
#acf-field-group-fields
: