iPhone Whatsapp Lockscreen Notification Problem
Had this same problem and got the below reply from whatsapp support

To turn on previews that display the contact name but not message:

Go to WhatsApp > Settings > Notifications > turn Show Preview on. Go to iPhone Settings > Notifications > WhatsApp > Show Previews > Never.