I am currently working on a WordPress plugin that creates dummy content. I’d like to also have the plugin create random images using a service like http://lorempixel.com. The problem however is that when accessing the service that an actual file name isn’t generated. You generate a random image like this:
http://lorempixel.com/1200/700/
How can I use the media_handle_sideload()
function to accomplish this?