A first day in Datong
The grottoes west of the city. The Hanging Temple is a different cliff and a different day.
Datong is the city you arrive in. The grottoes are the day, on a cliff west of town. Come by train, then take the road out to the caves. The streets around the station are not the visit, and the city wall can wait until you have seen the stone.
The cliff is a row of openings cut into the rock, with one large seated figure in the open air. Walk the front of the cliff first so you see how many caves there are. Then go into one of them. The color still on the carving, and the smaller figures packed along an arch, are the reason to be inside. The outdoor statue and the painted stone are one place. Do not treat them as two tickets in two towns.
The Hanging Temple is a wooden building on a different cliff, a long way south of this one. It is a separate day. Adding it means you rush the caves and arrive at the temple late. Leave it. The same is true of a wall walk in the city. Do that on the morning you leave, or not at all, rather than cutting the grottoes short.
Give the cliff the hours. If a cave is crowded, wait for the next opening instead of leaving for town. The stone is the whole visit. Eat back in Datong when the light goes, and do not plan a second mountain for the evening.
The road from the station is the arrival. Do not try to see the caves from the city and be back for lunch. Some openings are shallow and some go back into the dark. Stay with the ones that still hold color. A bare niche, where a figure has gone, is still part of the cliff. Look at it, then move to the next arch. One afternoon along this face is enough. Leave the cliff before you invent a second site for the evening.