Gold also has certain characteristics that is highly specific to it that really put it in a class of its own. The price of gold, for example, is not impacted by changes in demand and supply, unlike commodities. This is because annual demand and supply are only a fraction of the outstanding gold in circulation. This characteristic makes it curiously similar to paper money or stocks, with the big difference that gold does not produce any revenue or cash flow streams and therefore does not have an intrinsic value. The price of commodities, on the other hand, are very much impacted by current and expected demand and supply dynamics. Almost all of the supply of a commodity will be consumed in one form or another, only a small portion is stored indefinitely. In the case of food, this is pretty obvious whilst in the case of hard metals, it is converted to become part of something else in a production chain somewhere around the globe.
So what is it that influences the value of gold? There are several factors that have an impact on the price of gold. Amongst the most important is sentiment, more specifically how much confidence an investor has on monetary authorities. If confidence is being eroded, the price of gold is likely to go up as it serves as a refuge investment in the event of uncertainty in the financial system. This is also the reason why the price of gold rises when there is "money inflation", which is exactly what is happening in the U.S. today.
Gold is not only a surrogate for money, it is a powerful diversifier that softens the blow when monetary authorities get it so very wrong. This makes it a rather unique investment which is why any sound portfolio should contain some.