He scored his first league goal for the club in a 1–1 draw at St Mirren Park against Dundee United on 26 January 2011, netting a header from a well placed corner kick by Steven Thomson. He then scored his second league goal for the club in a 3–3 draw against Inverness Caledonian Thistle on 12 February 2011, with a header from a Jure Travner corner. During a match against Dundee United in the SPL on 6 August 2011, McGregor suffered cruciate ligament damage that prevented him from playing for most of the 2011–12 season.
