How do I hide contact name from whatsapp notification on iphone5
On your iPhone go to Settings > Notifications > WhatsApp > scroll down and you'll see "Show Previews" > And change that.

Also in WhatsApp settings. Click on Notifications. The toggle "Show Preview" off.

That should only show the senders name and not the context of the message.

You can also turn of show on lock screen for WhatsApp in iPhone notification settings for added privacy.