Hi Pravin,
Thanks for the email! Yoast is able to set a custom canonical on custom archive pages. See image here: https://pasteboard.co/GE8uCeo.png. However:
- Can you confirm you have the right user permissions? You can check by going to Users->Your Name->Yoast SEO settings (may need to scroll down) and confirm that both “disable SEO” and “disable readability” are unclicked?
- Can you confirm that the Keyword, Readability, and MetaBox insights are all enabled by going to SEO->Dashboard->Features and checking that Readability, Keyword, MetaBox Insights are both enabled?
- Can you confirm that the SEO and Readability are enabled on the posts? You can check by going to SEO->Titles and Metas and seeing that the Yoast SEO Meta box says “show”? for the custom archive page?
- Can you confirm that if you go to SEO->Dashboard->Security that the advanced part says enabled?
Thread Starter
Pravin
(@pravinlpatel)
Hi @pcosta88,
Thanks for your guide. I have checked everything and it looks good to me and I am able to set canonical url for Archive or custom taxonomy page. However, it is not showing up in page source. please refer https://pasteboard.co/GEhCOvJ.jpg.
To get it worked, I have include following code in head section of header.php file
<link rel=”canonical” href=”[URL_HERE]<?php echo $_SERVER[‘REQUEST_URI’];?>”>