humanmade / network-media-library

Network Media Library plugin for WordPress Multisite
MIT License
290 stars 55 forks source link

ACF Image Field Issue When Using Dynamic Tag in Elementor #98

Open jjsereday opened 3 months ago

jjsereday commented 3 months ago

There is an issue when selecting an image from an ACF field to appear dynamically in Elementor.

The weird thing is, it works on the "other site" but on the "main" network library site it does not.

The image appears when selected on the wordpress edit page, but when selecting it from the Dynamic Tags ACF menu nothing appears.

I was able to get the Dynamic ACF field to work by disabling the Network Library but when on it doesnt work.

Amar57 commented 3 months ago

EDITED

Hi, I'm having the same issue. It is the main site that is the issue here also.

It saves the image id correctly to the db but when accessing it using the ACF methods (get_fields in this case) it returns back as null. I guess the issue is compatibility with ACF since it works when I don't have this plugin active.

I get no exceptions or warnings in the debug.log when saving a post.

This is the only warning that I found in regards to the plugin:

[01-Aug-2024 21:28:12 UTC] E_WARNING: Attempt to read property "post_type" on null in .../wp-content/plugins/network-media-library-master/network-media-library.php on line 359

jjsereday commented 2 months ago

Hey @Amar57 have you had any luck?