Fix a bug and make WordPress template write out only if we ask it to.

Desperately need some tests for this.
Add promise about tests