add attributes to post