In Power gallery, go to the add to site section for your gallery and copy the code From the Add to Power Store, it will look similar to:
<input type="hidden" name="powergallery" id="1" theme="dark" value="/Applications/MAMP/htdocs/pg/galleries/ribbon_fullsize_lightbox/index.php" />
you then need to modify the PowerCMS developer notes code to wrap the wa_evaluate() function around the WA_getCMSContent() function.
change:
<?php
echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Home Page', 'Content', true);
?>
to:
<?php
echo wa_evaluate(WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Home Page', 'Content', true));
?>