Home › Forums › Backend Issues (wp-admin) › "Loading failed" on post_object field › Reply To: "Loading failed" on post_object field
Not sure where to start and I’m not sure about all the answers. Fields are stored as a posts in a custom post type. Field groups are also posts stored in another custom post type. These posts have a parent post ID. This parent post ID can either be another field post or a field group post.
To be honest, I don’t know what would happen if you alter the field group key in a field group registered through PHP. It’s not something that I would do since I don’t see any reason to change it.
As far as the field key stored in the postmeta table. The key tells ACF what field key is associated with a value so that it knows how to treat that value when you use get_field() and other ACF function. This really isn’t very important for some fields, like a simple text field. If ACF cannot find the field key in the database then it will treat the field as a text field and return whatever values is stored for the field. Like I said, not very important when it comes to a text field.
However, it is very important for other types of field, for example an image field. For and image field ACF stores the attachment post ID. Without the field key in the database ACF will not know it’s an image field and will not be know that it’s supposed to return an image url or an image array and will just return the number as a text value.
Each field key is linked to the field it is for by the meta_key. If you have a field named this_is_a_field
then there will be another enter in the database with the meta_key of _this_is_a_field
. This is how ACF knows what field key goes with each value in the DB.
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.