Why was John the Baptist put in prison?
Thus it is clear that both answers could be correct as part of the picture, although the Bible writers were likely more close to the events in question, given the earlier time-frame in which the relevant authors lived and the closeness of their sources. So, it is thus more likely that John was put into prison due to the actions of John in rebuking Herod for his adultery.