Apparently the PHP version on the project server won't accept get_the_category()[0]. But doesn't mind $category = get_the_category(); $category[0]; Come on Dal!