Home › Forums › General Issues › PHP registered fields being hidden › Reply To: PHP registered fields being hidden
Thanks for responding. No, we’re not. This is on WordPress 4.9.8.
So the fields are being displayed – they’re on the form, and are visible when you first load the page. But when certain actions in the Edit Post screen trigger acf.screen
, all fields with a class of acf-postbox
are hidden. Then, only those contained in the json data are unhidden again.
Fields registered in PHP don’t then get unhidden, and remain on the page with an inline style of display: none
that has been applied by the ACF JS.
This is all behaviour from acf-input.js
, and you can see it starting around line 10858.
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.