You have to look for the cause of the pain on the sole of the foot before you can treat it. You can see an orthopedic surgeon for pain on the sole of the foot and a dermatologist. If you can see something growing on the surface of the skin, such as warts, corns, calluses, you will have pain when you walk or squeeze because something has grown out. Of course warts, calluses and corns are not treated in the same way, but mainly physical treatment, such as liquid nitrogen freezing, laser, surgical treatment, direct surgical excavation. If you can’t see or feel anything and just feel pain, it could be tendon or ligament inflammation, or there could be other problems, so you need to see an orthopedic surgeon. In conclusion, pain in the sole of the foot can be either a proliferative disease, pain caused by extrusion, or pain caused by inflammatory infection or trauma, so you need to see a dermatologist or orthopedic surgeon for a clear diagnosis before you can treat it accordingly.