This rule was changed, it had previously been a single shot on goal which if it went in off the post or bar was a goal, however, if as you say it hit post/bar and then the keeper the ball deemed "dead" as it struck the keeper therefore no goal.
Obviously caused some issues and has now been changed.