Support

Account

Home Forums Backend Issues (wp-admin) Replicating Thumbnail Generation from Media Library to ACF Gallery

Solving

Replicating Thumbnail Generation from Media Library to ACF Gallery

  • Hello,

    I have developed a simple plugin that generates a thumbnail from the first frame of a video when it is uploaded to the media library. This thumbnail is then displayed as the thumbnail image instead of the default video icon.

    However, I’m encountering an issue when trying to achieve the same functionality in the ACF Gallery when uploading videos. I initially assumed that it would access the media library and replicate the same behavior.

    Is there a specific step or approach I should follow to replicate the behavior from the media library to the ACF field?

    If you require more details, I would be happy to provide you with my code. I appreciate any guidance you can offer.

    Thank you in advance.

  • The ACF Gallery field does not support videos. What are you using to enable this support?

    In most cases ACF uses all of the functionality of WP for uploading images and other files. It calls the WP built in media modal used by WP. The only difference is that ACF gets the ID from that window when a file is selected and applies it to the ACF field value.

  • @hube2 Thanks for the answer! I was able to upload videos in the ACF Gallery without needing to set anything specific. The only difference is that while the native media library accepts my function for thumbnail generation (see screenshot 1), the ACF gallery won’t take the parameters as mentioned (see screenshot 2).

    As said, nothing has been set from my end to allow to upload video in the gallery

    Any idea why this could happen?

    Thanks

    Screenshot 1
    Screenshot 2

  • @anta were you able to find or create a solution to this?

    I have been looking for a plugin to help with this since I am also using Elementor in my particular case.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.