The hottest fires have three things going for them: dry fuel, plenty of oxygen, and a dense mass of burning material, such as a bed of coals. Fire temperature varies a lot with conditions, so exact numbers are hard to pin down, but these three factors matter most.
Dry fuel
Water in wood has to boil off before the wood can release its heat to the flame. Drier wood therefore puts more of its energy into the fire, and it tends to burn more completely. Dense hardwoods also hold more energy per piece than light softwoods.
Enough oxygen
Burning is a chemical reaction with oxygen. When air is limited, fuel burns incompletely, producing more smoke and less heat. When oxygen is plentiful, the fuel burns more completely. This is one reason airflow matters so much to how hot a fire gets.
A concentrated mass of fuel
A small fire loses much of its heat to the surrounding air. A larger, dense bed of burning fuel holds heat and keeps the area around it hot. That is why a bed of coals often feels hotter and steadier than a scattering of flames.
Flame and coal temperatures
Flames from a well-fed wood fire can exceed 1,000°F (about 540°C) in their hottest zones, and glowing coals can also burn very hot and steady. Exact temperatures depend heavily on the fuel, the airflow and where you measure, so treat any single number with caution.
What this means for cooking
For cooking, steady heat is usually more useful than tall flames. Flames can scorch food within seconds, while a bed of coals can be spread out and adjusted. Many campers prefer cooking on coals for this reason.
Charcoal is a common choice for steady heat. If you are using it, timing matters: how long to burn charcoal before cooking depends on the amount and the type, and many cooks wait until the coals are mostly covered in gray ash before they start.
Safety with hot fires
A hot fire throws off more heat, sparks and embers. Keep it inside a fire ring, keep water nearby, and keep tents, dry leaves and gear well away from it.