There will be a contest for Pahang's Batu Talam state by-election on Jan 28 despite an opposition boycott.