'99 Escort ZX2

My Escort has just started getting cranky when I try to put it in park to shut off the engine. Tried wiggling, jiggling, found the most effective technique was a gentle slam. Any idea what would cause this? My first thought would be the linkage, but that would be nothing more than a wild guess. Second thought is some electronic thing. I hate electronic things in my cars. I know they’re good, but… Thanks!

I’d have someone check the adjustment on the shift cable/linkage. Keep slamming and you will make it worse.

Is the button on the shifter working properly?

Yes, the button is smooth, no sticking.