Unstabilized ylids are supposed to give cis-alkenes exclusively in the Wittig reaction. The idea is that in the formation of the intermediate betaine (if one is actually formed; the literature is conflicted, to say the least), the large substituents will stay as far from each other as possible, but end up right next to each other when the molecule rotates to form the oxaphosphetane.
However, a quick google search has shown that some amount of trans-stilbenes seem to be formed even in the classical Wittig reaction. Couldn't find an explanation, though (don't have easy access to any literature), and I don't think the Wittig-Horner mechanism is applicable here. Some kind of pi-stacking between the two phenyl groups, perhaps?