scopes for post and category