displaying info  on a post based on event code