Add template to posts