Setting a custom canonical URL in Yoast Wordpress SEO Plugin
Reposted due to no replies. I'm having some trouble setting a custom canonical title using the Wordpress SEO API: http://yoast.com/wordpress-seo-api-docs/ I have a custom post type called designs which uses a custom URL rewrite. It takes the base page /design/ and adds the design name to it like /design/a-design/. The canonical in Wordpress SEO by default is the /design/ page. What I want to do is write a function which determines if it is a design page and return a different canonical. I can test whether it's a design page by doing if ($design == ""){ and I tried to use the custom permalink U
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.