Sherri Shepherd — who just landed a plum spot on “The View” — is plotting a primetime comeback.

Comic-thesp is developing a half-hour sitcom for the CW that’s loosely based on her own life experiences. She’s set to produce and star in the project via ABC Studios-based producers Nina Wass and Gene Stein. Dave Flebotte (“Will & Grace”) will pen it.

Untitled skein will revolve around a married woman who discovers her husband has been cheating on her and has an illegitimate child. She agrees to let the child and her mother move in with the family.

Shepherd has talked openly on “The View” about her marital difficulties, including her husband’s infidelity and the child that resulted from that affair.

If the CW project goes forward, it wouldn’t be the first time that a morning talkshow host has done double duty. Kelly Ripa juggled “Live With Regis and Kelly” and her ABC laffer for three seasons. And former “View” moderator Rosie O’Donnell had a recurring role on “Nip/Tuck” during her tenure with the talker.

It’s a good bet the Shepherd project would lense in Gotham, allowing Shepherd to keep her chair on “The View.”

Shepherd is a sitcom vet, most recently snagging a recurring role on NBC’s “30 Rock.” She also co-starred in the ABC Studios-produced “Less Than Perfect,” which was produced by Wass and Stein.

Exec producers of the Shepherd project will be Wass, Stein and Flebotte. Flebotte is currently on the staff of FX’s “Dirt”; his other credits range from “Ellen” to “The Bernie Mac Show.”