add tag function for each post, posts can be searched by clicking tag