Home › Forums › General Issues › populate divi gallery module with ACF › Reply To: populate divi gallery module with ACF
Hi,
there are two problems.
1. The Free ACF Plugin –> navneil-naicker / acf-photo-gallery-field
return a array with posts, not the ‘id’.
So you have to change the Code to
'include' => implode(', ', array_column(get_field('fotos',false,false), 'id')),
2. The Divi Dynamic Module Framework (Settings–>Performance) didn’t load the new gallery type.
you have to insert
function divi_child_gallery_module_class( $classlist ) {
$classlist['et_pb_gallery'] = array( 'classname' => 'ET_Builder_Module_Gallery_ACF',);
return $classlist;
}
into the functions.php
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.