Setup M:M for posts and categories