fucking $post

revert this shit as it's causing issues with multiple post galleries