Jane's question was about kings who were a woman's 3rd husband.
Fernando II was a king-consorte and a king-regent who was D.Maria II 3rd husband.
D.Maria II was 1st married by proxy with papal dispense on Oct.29th 1826 to her uncle, Infant D. Miguel.
Naturally the marriage was never ratified by the spouses in presence and it was never consumated.
Such marriage was dissolved on Dec.1st 1834.
Oddly enough, the very same day, D.Maria married her 2nd husband August von Leuchtenberg by proxy (again), which, today, would be completeley illegal
Maria II of Portugal had only one husband who got the title of King and that was Ferdinand. Her first husband died before the couple had a child so he never became king-consort.
In England Philip II of Spain was King-consort to his second wife Mary Tudor and in Scotland at least Francois II was king-consort to Mary Stuart i believe lord Darnley was king-consort but did not become her heir and co-ruler as he wanted. Her third husband never became king-consort.
In Georgia Queen Tamar was married two times but i don't know if any of her husbands became king-consort.
Margaret Tudor, oldest daughter of Henry VII and Elizabeth of York married three times as did her granddaughter Mary queen of Scots.
However, King James IV of Scotland was Margaret's first husband, not third, so this example doesn't really count. Neither does her granddaughter Mary, of whose three husbands only the first became a king.
I believe that it is only in Spain and Portugal where the husband of a queen regnant can be given the title of king consort.