It does seem that WordPress is stripping out some needed info on the page. I'm not familiar enough with WordPress to know exactly what the setting or settings are but you will need to be able to get the same type of result that you have on your other page in order for the gallery to work on a given page.