I think there is some truth to Jacob. Maybe forged occupations but I think the name is probably right.
The location looks the same, and, if I'm not mistaken, I believe the marriage date and place is the same too, which is interesting. Both married February 24, 1860 at Kilth(?) Place, Kilmaurs (though by different Ministers; William & his wife were married by the Minister of Kilmaurs while Agnes & her husband were married by the Minister of Kilmarnock).