Support

Account

Home Forums General Issues ACF lite + ACF plugin Reply To: ACF lite + ACF plugin

  • Hi @smashbrando

    To include ACF as a theme feature, you can use the following code:

    
    define( 'ACF_LITE' , true );
    include_once('advanced-custom-fields/acf.php' );
    

    Becuase plugins are run before the functions.php file, you could first check for the ACF plugin like so:

    
    if( ! class_exists('Acf') )
    {
    	define( 'ACF_LITE' , true );
    	include_once('advanced-custom-fields/acf.php' );
    }
    

    Hope that helps