Have set up the post function for a transition but can't figure out how to include custom fields within the template