checks for post and categories as well