You dont need to write anything for canonical link, its automatically written based permalink url. make sure to tick yes: Include Canonical URLs on Posts and Pages? on Greg’s High Performance SEO --- > Head Meta--->Head content: Canonical URLs.