Sing badly at the pub and you'll get knocks (7)
I believe the answer is:
innings
'you'll get knocks' is the definition.
I can't judge whether this definition defines the answer.
'sing badly at the pub' is the wordplay.
'badly' indicates an anagram (letters in the wrong order).
'at' says to put letters next to each other (I've seen this in other clues).
'the pub' becomes 'inn' (an inn is a type of pub).
'sing' is an anagram of 'ings'.
'ings' after 'inn' is 'INNINGS'.
'and' is the link.
Can you help me to learn more?
(Other definitions for innings that I've seen before include "Time at the crease for one batsman (or eleven)" , "part of cricket match" , "Time spent at the crease" , "Chance to score" , "Time at the crease - a good one's a long life" .)