BEIJING — A Chinese court has ordered a media company to pay nearly $30,000 to a real estate developer after it published an article that suggested a flashy building in Beijing violated the ancient laws of feng shui and would bring misfortune to its occupants.

The Chaoyang District People’s Court in Beijing ruled on Wednesday that the media company, Zhuhai Shengun Internet Technology, had damaged the reputation of the building’s developers, SOHO China, one of the largest real estate companies in China.

SOHO China sued Zhuhai Shengun last fall after it published a critical blog post about the Wangjing SOHO, a trio of sleek towers in northeast Beijing designed by the renowned architect Zaha Hadid.

The post, written by a feng shui expert, argued that the building had a “heart-piercing” and “noxious” energy that had led to the downfall of its tenants, including several promising technology start-ups.