He said there would be consequences for any civil servant who failed to abide by the code.
Civil Service Commission has banned civil servants from posting issues to do with their work on their personal social media platforms.
Zambia Civil Service Commission chairperson Dickson Chasaya also barred government employees from speaking to the press.
"I will provide guidance to the civil servants that they should not discuss Government matters through social media or the Press," Mr Chasaya said.
He said civil servants should know how to conduct themselves, by following the code of ethics of the public service.
Mr Chasaya said no civil servant below the rank of a permanent secretary was authorised to issue statements to the Press or the public pertaining to their work.
Speaking at a press briefing in Lusaka on Wednesday the chairperson said civil servants could issue statements to the Press only when given permission by their superiors.
The directive comes barely weeks after Zambia's Foreign Affairs minister resigned after handing in epic Facebook resignation