Home Forums Backend Issues (wp-admin) ACF integration not working


ACF integration not working

  • Hi there! I’m having a bit of a problem. I’m trying to integrate ACF into my current premium WordPress theme. The theme has a option page, and the whole theme rely’s on the ACF system.

    Just to clarify; I don’t need the plugin once I integrate it into the theme right?

    I’m using the official documented code:
    // 1. customize ACF path
    add_filter(‘acf/settings/path’, ‘my_acf_settings_path’);

    function my_acf_settings_path( $path ) {

    // update path
    $path = get_stylesheet_directory() . ‘/acf/’;

    // return
    return $path;


    // 2. customize ACF dir
    add_filter(‘acf/settings/dir’, ‘my_acf_settings_dir’);

    function my_acf_settings_dir( $dir ) {

    // update path
    $dir = get_stylesheet_directory_uri() . ‘/acf/’;

    // return
    return $dir;


    // 3. Hide ACF field group menu item
    add_filter(‘acf/settings/show_admin’, ‘__return_false’);

    // 4. Include ACF
    include_once( get_stylesheet_directory() . ‘/acf/acf.php’ );

    I’ve included the plugin in the theme directory called “acf”, but for some reason it’s showing no option page, nor any sign of custom fields.

    I’ve also added the PHP code for the fields in functions.php.

    I’m pretty stuck at the moment, and would greatly appreciate it if I could get some help.


  • Ohh never mind. Solved.

  • how it solved please let us know

  • @shokry055

    My guess is that @izstubbz failed to notice this in the example:

    // 3. Hide ACF field group menu item
    add_filter(‘acf/settings/show_admin’, ‘__return_false’);

    That would hide ACF from wp-admin so even if it’s correctly integrated he/she wouldn’t see it.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘ACF integration not working’ is closed to new replies.