WASHINGTON – John Edwards, who yesterday demanded Democratic candidates return any campaign donations from Rupert Murdoch and News Corp., himself earned at least $800,000 for a book published by one of the media mogul’s companies.

The Edwards campaign said the multimillionaire trial lawyer would not return the hefty payout from Murdoch for the book titled “Home: The Blueprints of Our Lives.”

The campaign didn’t respond to a question from The Post about whether it was hypocritical for Edwards to take money from News Corp. while calling for other candidates not to.

In addition to a $500,000 advance from HarperCollins, which is owned by News Corp., Edwards also was cut a check for $300,000 for expenses.

Edwards claimed $333,334 in royalties from last year’s release of the book, according to media accounts. The campaign said last night that those funds were part of the advance.

He says he gave that amount to charity, which would also provide tax benefits for Edwards. “We’re more than happy to give even more of Murdoch’s money to Habitat for Humanity and other good causes,” spokesman Eric Schultz told The Post yesterday.

He declined to show proof, however, that Edwards had donated the $500,000 advance or $300,000 expense checks to charity.

Meanwhile, Edwards yesterday attacked Hillary Rodham Clinton for taking more than $20,000 in donations from News Corp. officials, arguing that the company’s Fox News Channel is tilted to the right. News Corp. also owns The New York Post.

Clinton declined to respond.

The Edwards campaign said it would return less than $1,000 in donations from three Fox employees.

Languishing in the polls behind Clinton and Barack Obama, Edwards also has led the Democratic field’s boycott of a Fox co-sponsored presidential debate.

“The time has come for Democrats to stop pretending to be friends with the very people who demonize the Democratic Party,” Edwards said.