Home › Forums › Backend Issues (wp-admin) › strange "Error Field type does not exist" › Reply To: strange "Error Field type does not exist"
Hi James I came I use the following filter I get the same issue:
add_filter('acf/load_field/name=hidden_post_id', 'make_hidden_post_id_readonly', 10, 1);
function make_field_readonly($field) {
// sets readonly attribute for field
$field['readonly'] = 1;
return $field;
}
the hidden_post_id disappears from the field group in the acf menu.
I actually copied that filter script from John Huebner:
https://support.advancedcustomfields.com/forums/topic/accept-only-unique-values/#post-45352
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.