Thanks for this code… it works but…It’s global for all posts. Any way to restrict it to specific categories?
Also, I was looking at gravity forms and they use some sort of merge fields option to actually put the images in the Post itself. That would really make this plugin great for me.