NY judge orders Bethenny Frankel to stop wearing daughter's pajamas

Stop playing dress up with your 4-year-old!

That was the order a Manhattan matrimonial judge handed down to former reality star Bethenny Frankel Thursday over the 43-year-old’s Instagram photo of herself wearing her daughter’s teeny tiny Hello Kitty pajamas.

“No more pajamas!” Justice Ellen Gesmer warned Frankel’s attorney, Allan Mayefsky in court.

NEWS: Is Bethenny Frankel returning to 'Real Housewives of New York City?'

The A-list lawyer, whose firm has represented Christie Brinkley’s ex-husband Peter Cook and Katie Holmes, tried to explain his client’s behavior by saying it was a joke.

But the stone-faced judge wasn’t laughing.

“It’s not a joke. Her child is not a joke,” said Gesmer, adding that the episode was “ridiculous.”

She continued that Frankel — who had tried to gain sole custody of her daughter with pharmaceutical executive Jason Hoppy, but then settled after an embarrassing trial where she called him “white trash” — used poor judgment by posting the photograph online in July.

Click here for more on this report from the New York Post.

WATCH: Four4Four: Does Adam Levine’s video make stalking look sexy?