Hi guys,
Third-party ACF (or other dynamic data providers) plugins are only partially supported.
However, we do support the regular ACF Gallery Field (which is unfortunately only available in the Pro version of ACF). Would you be so kind as to add the request to the Idea Board? That way, we can see if there are more users with a need.
Hope to see deeper integration and full support for ACF, Meta Box etc. in future versions of Bricks Builder, Oxygen, Divi and Elementor, are way ahead with much deeper integration and full field type support.
Oh for sure! But it would be nice if you guys put a higher priority on dynamic data support, as many of the other features people ask for are not as fundamental to building flexible and quality sites as dynamic data. But love the product, hopefully the 1.4 rewrite will be amazing and solve lots of bugs and problems.
If we could save some $ by not buying ACF PRO just for gallery field, that would be great. I would love to use this dynamic data in a Carousel element.
@timmse s of 1.4.2 or 1.5 do you see any working, temporary solution to use this plugin’s gallery field in Carousel?
Btw. I don’t see this on the Idea Board and would love to upvote it. I know you guys don’t have a precise schedule on how often you refresh the Board, but it’s been a while since March, so…
1.5 RC fixed the ‘Output PHP Function’ dynamic data option behavior so now you can write function like this:
function get_portfolio_gallery(){
//Get the ID of the portfolio item currently in loop
$portolio_id = get_the_ID();
//Get the image array that is attached to this portfolio item
$portfolio_gallery = acf_photo_gallery('test_gal', $portolio_id);
//Get only IDs of these images as this is what Carousel and Gallery elements expect to get
$gallery_img_ids = array_column($portfolio_gallery, 'id');
return $gallery_img_ids;
}
I have ACF Photo Gallery field called ‘test_gal’ attached to portfolio CPT.
I use it in the query loop that outputs portfolio items. There I have a Carousel element which is set like this after using ‘Output PHP Function’ dynamic data option
Works like a charm. Also tested with Gallery element.
Sorry for the late reply. Of course not, that’s why we use functions in the first place. We would have to modify the code a bit tho. Didn’t test it, but this should work.
First, add the argument to the function, so that we can specify which field we want to output. Then we use this argument inside the function in place of the previously static field name. This is what we would do in every other programming language.
function get_portfolio_gallery($field_name){
//Get the ID of the portfolio item currently in loop
$portfolio_id = get_the_ID();
//Get the image array that is attached to this portfolio item
$portfolio_gallery = acf_photo_gallery($field_name, $portfolio_id);
//Get only IDs of these images as this is what Carousel and Gallery elements expect to get
$gallery_img_ids = array_column($portfolio_gallery, 'id');
return $gallery_img_ids;
}
Then it should be possible to call this function in the builder like {echo:get_portfolio_gallery('test_gal_2')}