Refined output to wordpress file with comments