{"id":9169,"date":"2010-05-16T22:42:18","date_gmt":"2010-05-16T22:42:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/canonical-link\/"},"modified":"2026-01-21T13:48:56","modified_gmt":"2026-01-21T13:48:56","slug":"canonical-link","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/canonical-link\/","author":23361022,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.6","stable_tag":"trunk","tested":"6.8.5","requires":"5.0","requires_php":"","requires_plugins":null,"header_name":"Canonical Link","header_author":"Web Guy","header_description":"","assets_banners_color":"5a5a5a","last_updated":"2026-01-21 13:48:56","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/webguy.io\/donate","header_plugin_uri":"https:\/\/webguy.io\/blog\/super-simple-dynamic-canonical-link-code\/","header_author_uri":"https:\/\/webguy.io\/","rating":5,"author_block_rating":0,"active_installs":2000,"downloads":16699,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1848947,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1848947,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":1848947,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":1848947,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[6363,15663,15664,186,11497],"plugin_category":[55],"plugin_contributors":[247167],"plugin_business_model":[],"class_list":["post-9169","plugin","type-plugin","status-publish","hentry","plugin_tags-canonical","plugin_tags-canonicalization","plugin_tags-clean-url","plugin_tags-seo","plugin_tags-seo-friendly","plugin_category-seo-and-marketing","plugin_contributors-webguyio","plugin_committers-webguyio","plugin_support_reps-johnmarty"],"banners":{"banner":"https:\/\/ps.w.org\/canonical-link\/assets\/banner-772x250.png?rev=1848947","banner_2x":"https:\/\/ps.w.org\/canonical-link\/assets\/banner-1544x500.png?rev=1848947","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/canonical-link\/assets\/icon-128x128.png?rev=1848947","icon_2x":"https:\/\/ps.w.org\/canonical-link\/assets\/icon-256x256.png?rev=1848947","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><a href=\"https:\/\/github.com\/webguyio\/support\">\ud83d\udcac Ask Question<\/a> | <a href=\"mailto:webguywork@gmail.com\">\ud83d\udce7 Email Me<\/a><\/p>\n\n<p>Adds the canonical link to your site (<a href=\"https:\/\/wikipedia.org\/wiki\/Canonical_link_element\">Learn More<\/a>).<\/p>\n\n<p>Activate and then set your permalinks to \"Post name\" under <em>Settings &gt; Permalinks<\/em>. That's it.<\/p>\n\n<p>Verify that it's working correctly with the <a href=\"https:\/\/addons.mozilla.org\/addon\/canonical-link\/\">Firefox add-on<\/a>.<\/p>\n\n<p>Supports the ability to customize the canonical link for any specific page, post, or even custom post types (including WooCommerce Products and bbPress Topics).<\/p>\n\n<!--section=installation-->\n<p><strong>Automatic<\/strong><\/p>\n\n<ul>\n<li>From your WordPress Admin, navigate to: <strong>Plugins<\/strong> &gt; <strong>Add New<\/strong><\/li>\n<li>Search for: <strong>Canonical Link<\/strong><\/li>\n<li>Install it<\/li>\n<li>Activate it<\/li>\n<li>Please see <strong>Additional Instructions<\/strong><\/li>\n<\/ul>\n\n<p><strong>Manual<\/strong><\/p>\n\n<ul>\n<li>Download<\/li>\n<li>Unzip<\/li>\n<li>Upload to \/plugins\/ folder<\/li>\n<li>Activate<\/li>\n<li>Please see <strong>Additional Instructions<\/strong><\/li>\n<\/ul>\n\n<p><strong>Additional Instructions<\/strong><\/p>\n\n<p>You will also need to update your permalinks (if you haven't already), which will give you desirable SEO-friendly and user-friendly URLs anyway:<\/p>\n\n<ul>\n<li>From your WordPress Admin, navigate to: <strong>Settings<\/strong> &gt; <strong>Permalinks<\/strong><\/li>\n<li>Under \"<strong>Common Settings<\/strong>\", select \"<strong>Post name<\/strong>\"<\/li>\n<li>Click \"<strong>Save Changes<\/strong>\" and you're done<\/li>\n<\/ul>\n\n<!--section=changelog-->\n<h4>1.6<\/h4>\n\n<ul>\n<li>Minor code cleanup<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Minor cleanup<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Added support for custom canonical links on single pages and posts<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Added https support<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Removed syntax error from code<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Cleans URLs better, removing query strings (<strong>?<\/strong>)<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>New<\/li>\n<\/ul>","raw_excerpt":"Adds the canonical link to your site (https:\/\/wikipedia.org\/wiki\/Canonical_link_element). Activate and then set your permalinks to &quot;Post name&amp;quo &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/9169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=9169"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/webguyio"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=9169"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=9169"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=9169"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=9169"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=9169"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=9169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}