So I have this idea in mind: I would like to create custom page template, and whenever in post gallery is between tags, for example:
Lorem ipsum somethinginkgsd....
[carousel]
Gallery here
[/carousel]
I would like to convert this gallery to a carousel.
Creating carousel is fairly simple I guess. I just need something like get_post_gallery_images, but:
- get_post_gallery_images will only return first gallery in post
- this would still render gallery inside a post.
So my question is: how to get exactly the one gallery between [carousel] tags, and how to replace it?
Thank you a lot for any help!
Aucun commentaire:
Enregistrer un commentaire