Over the weekend, I installed the Hana Code Insert wordpress plugin and that worked for me when integrating PowerGallery. Check it out at hana-code-insert/. Basically, you can just define Hana code snippets and mark them as PHP, then you can integrate it into a post or page on your wordpress site.
-justin