The pen we are getting ready to take down is t-posts and welded wire. The gate is a 2x4 frame with welded wire. At the last t-post, we screwed in a 2x4 and then attached the gate to that 2x4'd t-post. The gate closes against a 2x4 that is attached to the side of the shed.