As understand it yes, you have to get it for all of the nights (remember it's done by nights not days)
However that said there's nothing to stop you from doing a split stay - 6 nights in one place on the dining plan (although your dining credits would expire on the last day) and 4 nights somewhere else (perhaps on a 'room only' discount).