The media organisations who were excluded only have themselves to blame. You cannot take such a partisan approach to reporting on an election as did the New York Times and CNN and then expect to be extended privileged access to that candidate after his successful election. The publisher of the New York Times as much as confessed to his readers after the election that their coverage had been unfair and not impartial.
This incident was quickly followed by President Trump's refusal to attend the White House Correspondent's dinner, an annual event for Washington journalists that became something of a love-in for Obama and the press. Trump's refusal to rub shoulders with a group of people whom he has accused of being overwhelmingly hostile to him suggests he has some consistency at least.
I am no fan of Donald Trump but I am even less of a fan of the mainstream media. I have written before about how the media have destroyed their credibility through increasingly partisan coverage of political issues. They no longer act as the fourth estate but rather as a fifth column, fighting behind the scenes for a left-wing political agenda. Their shrill advocacy of their political viewpoint means they are increasingly isolated from, and at odds with, the real mainstream of society. They are so overwhelmingly of a like mind in their biases that they have created an echo chamber that reverberates with their own chorus. Worst of all, they disparage as fools and bigots the very people they rely on for their revenues and their jobs whenever they perceive public opinion as against them.
When you man the barricades for one side in a fight, you can't be upset when you find that you are no longer regarded as the honest broker. It is the media themselves who are too stupid and narrow-minded to realise they are the authors of their demise.