functionality added to save wordpress post as cms document