I’ve solved it – found something you answered in the GP Forums which has worked. I took the following advice to add the PHP code in the After Content section in GP Hooks
To make sure it only shows up on single posts, wrap it in this conditional:
<?php if ( is_single() ) : ?>
<?php endif; ?>
Then make sure Execute PHP is checked.