Outlets and switches
If the problem is the receptacle in the picture, you have to remove the factory installed jumper (brass connection) that is between the 2 screws in the bottom picture. with the jumper removed, each terminal is separate so 1 is constant on and the other is controlled by the switch.