“You have to have a molten core to generate a magnetic field....”
There you go.
Current loop planet sized. Dream big.