Did Shang kings have posthumous title, temple number and year number?

There was no year number, but there was a temple number at that time, which was based on the calendar year of heavenly stems and earthly branches, generally speaking, Shen Jianian and Jihai years. Emperor Wu of the Han Dynasty, who first used the year number, had the first year number: Jianyuan.

There was a temple name in Shang Dynasty. The so-called "temple name" is the only name given to the emperor by his descendants when they sacrificed to him in the ancestral temple. Ancient emperors used the same name before and after their death. Later, people found it inconvenient to call the dead first emperor and king directly, and it was not appropriate to call them by their first names when offering sacrifices. So the temple number was established. Mao of Shang Dynasty was Shang Tang, Taizong was Taijia and Wuding. This so-and-so ancestor, so-and-so Sect, is the temple number.

Posthumous title originated in the Zhou Dynasty. It is said that the Duke of Zhou made an obituary, and after each emperor died, he was given a nickname according to his behavior before his death. For example, Zhou Wuwang was called "Wu" after his death, because his martial arts were destroying the Shang Dynasty. Later generations called him Zhou, not Zhou. He is called "Wen" because he advocates culture, attaches importance to his own agricultural production and cares about internal affairs. Later generations called him Zhou Wenwang, not Zhou Jichang. But the last king of Shang Dynasty also had posthumous title. His word "Zhou" was posthumous title, which means ruthless. His posthumous title was given by the Zhou Dynasty. After King Wu destroyed the Shang Dynasty, Shang and Zhou died, and the Zhou Dynasty formulated this posthumous title for him according to what he had done before his death.