update post virtual attribute