Ryan Hampshire got his second try of the game as Wakefield cut Salford's lead with less than 20 minutes to go.