If you say that someone talks the talk but doesn’t walk the walk, it means that what they do doesn’t agree with what they say. For example:
talks the talk but doesn’t walk the walk.
The expression doesn’t necessarily have to follow this exact pattern. The following example is taken from Roy Zimmerman’s sarcastic song Chickenhawk (chickenhawk is a term used in the US to mock people who strongly support war and yet actively avoided any kind of military service):
Chickenhawk – proud to be a Chickenhawk
A loyal arm chair jock
["jock" is a pejorative US term for someone who likes only one activity]
Let’s check that Lockheed stock [Lockheed is an American company]
I didn’t walk the walk, but I can talk the talk
Bawk bawk bawk bawk bawk bawk bawk bawwwwk!
The term can also be used as a command:
Used as a command, it is synonymous to another idiomatic expression: “practice what you preach”.