When you see the gallery on the page you should view the source of it. Then you should browse to the gallery page directly and look at the source there. If it is the same it should be working the same. I'm not sure what types of limitations you will experience in general with WordPress sites but the code for the gallery should work on any php page that is in the same site and on the same server.