How to improve your posture

A thought; only do certain types of weightlifting at the gym which involves standing.

Rack pull, squat hold atlas lift.

Also, practice walking with Vibram five finger shoes, or barefoot. My thought of a a lot of poor modern day posher comes from the fact that people wear shoes with soles in them.