add type to posts