Tagged: Masonry Gallery, media library
Hi, I’d like to create a gallery (I was thinking of a masonry gallery) with all the images in the media library. I’d like it to be in its own page. I’ve tried with the advanced layout editor but I need to manually create the gallery first and I want it to be dynamic so that as new images are added to the media they’re also added to the gallery. Is there any way to do that? I was thinking maybe a custom page template and printing all the images there but I’d need to replicate the behaviour of the masonry gallery somehow…
Hi usystem!
Yes you can use the Masonry element for this. What I would do is use the Custom Post Types UI plugin and create a new post type named “image” or something similar and then use that in the Masonry. Whenever you need to create a new “gallery item” just create a new image post type to use and set the featured image.
You could also use the regular posts but set them to the “image” format and then use that in the Masonry options instead if you do not want to go through the hassle of creating a custom post type.
Regards,
Elliott