Home Forums ACF PRO Including accordion in the theme Reply To: Including accordion in the theme

  • I have to include this code:

    include_once( 'includes/acf-accordion/acf-accordion.php' );
    add_filter( 'acf/accordion/dir', 'acf_accordion_dir' );
    function acf_accordion_dir( $dir ) {
        $dir = get_template_directory_uri() . '/includes/acf-accordion/';
        return $dir;

    somewhere to get accordion to work, but I have no idea where. On github I was expecting something like: go to this file and paste this but they are not clear about it. Sorry, I am a bloody designer, can’t figure out this by myself. Thanks.