how to solder rotary pot
The hookups on the sides are there to provide mechanical stability: you don't want to stress the contacts every time you rotate the pot. They can be safely connected to GND, or left unconnected (that is, you still provide pads and solder the pot to them, but these pads can have no connection to anything else on the PCB).