SeaWorld Entertainment Inc. reported disappointing second-quarter results and slashed its revenue guidance for the year, saying the recent media debate about its treatment of captive orcas has hurt attendance.

Shares of SeaWorld—down 22% in the past year through Tuesday—lost about a third of their value Wednesday.

"The company believes...