In response to this;  "Under Jordanian law homosexuality is illegal. Public displays of affection between homosexual couple could result in arrest and prison sentences." The travel advice is based on information supplied by the local British embassy and presumably they have checked."   Looking at the national penal code, homosexuality per se is not illegal, but their are several "public morality" and "public order" -type laws that could be used against a gay couple that engaged in public displays of affection.   Likewise, anti-gay discrimination is also not illegal, so a hotel or restaurant could kick out a gay couple if the owner objects to their sexual orientation.