refactoring post by author, category and tag in one method