mannieschumpert
10/31/2013 - 1:59 PM

When using ACF, and registering fields via PHP (and not using Lite mode), your fields might not show, the likely problem being that your reg

When using ACF, and registering fields via PHP (and not using Lite mode), your fields might not show, the likely problem being that your registration code ran before the ACF plugin was initiated. To solve, wrap your fields registrations in a plugins_loaded hook.

<?php

add_action( 'plugins_loaded', 'register_my_fields' );
function register_my_fields(){

  // put the exported PHP field registration code here

}