you can mortise out the post for an electrical junction box, we've done it a lot.

as for hiding the wire -- hard to do at this point. only option i see is to groove the post and cap it like mo said.

**disclaimer**
I'm only speaking to the carpentry side of this. as for proper electrical installation, i can't speak to that.