I chose “admin” as the user to which the fields are displayed, but using the administrator account, the fields I setup were never displayed. Therefore I did a little test, trying to print out the §rule array using print_r. Instead of the array’s content, I always get this:
Notice: Undefined variable: rule in [MyPath]\htdocs\wordpress\wp-admin\test.php on line 12
Just tell me, if you need any more infos.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users