Add event for posts type