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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.