This thread was started in April. I have since moved on from this plugin. The code pasted in my previous post was the code I was using within the plugin Shortcoder. The plugin works great except when using captions and also any form code. I’ve come to realize this plugin cannot be used when I want to use captions, forms, or php.