add class diag for posts