How would someone go about accomplishing this goal?
To hang a magnet on a wall, you can
Attach the magnet to something metal in the wall, like a bolt