i want to display images and videos in the same gallery, but the documentation code shows only the code that you need to display images.
I can make an if and check for mp4 or other video types, but what about videos coming from youtube or vimeo? Can i do something about them?
The if-check about the uploaded videos in the wordpress library works.
But for the external videos like youtube or vimeo, I had to create a repeater field and just display it after the image gallery/video gallery field. At least it seems like it’s the same gallery now.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users