Visiting runs south in, north out: travel to the Tiananmen area in the south on the way in, and leave from the Jingshan area in the north on the way out. Planning transport around that flow saves a lot of backtracking.
Metro
On the south side, take Metro Line 1 to Tiananmen East or Tiananmen West and walk to the Meridian Gate. This is the least affected by traffic.
Bus
Stops are dense around Tiananmen and Jingshan, but routes and hours change; check current information before travelling.
Driving
The area is central-city core with tight traffic and scarce parking; driving is not recommended. If you must, check car park locations and fees in advance.