WordPress – Create posts out of Media Library images

My client has provided me with hundreds of images that have to be set as featured images for posts named after a part of the image’s title. Those images were uploaded to the Media Library already.

Is there a way to iterate through all of those files and process them with a function of my own? I need to extract the title of each image, create a post based on that image’s title and add two additional images to each post. I don’t want to do it manualy because it would take me ages to get it done.

Related posts

1 comment

Comments are closed.