Automatic image conversion to HEIF breaks Gallery on Safari

This is a known issue. A fix is set to be included in release 6.7.1: Targeted Fixes […] The following are bugs that should be included if ready, but as understood now are not affecting as many people or are less problematic: […] Using the Upload button in image-based blocks in Safari unexpectedly converts images … Read more

Uploading images via ACF update_field function

Should anyone come across the same issue, I found that when creating the $gallery_data array I was creating an array of arrays instead of key value pairs, I ended up just running the update_field function inside a foreach with the add_image key value pair created. $gallery_img_id = rudr_upload_file_by_url($gallery_img[“original_path”]); $acf_gallery_slug = “gallery_image_” . $counter; $add_image = … Read more

Adding a css class to the gallery

If you look at the gallery shortcode you will see that you are using the wrong filter. With post_gallery you can override the complete html of the shortcode. Your code performs a str_replace on an empty string, resulting in an empty return and subsequently the generation of the default gallery html. Further on there is … Read more