I want to set the set the cannonical url programmatically for every post.
By that I mean when creating/editing an article there should be the possibility to set a custom cannonical url for it. (maybe via custom fields?).
Right now I am using the WP Seo by Yoast as Seo plugin.
Best regards