• Paul Skip Brown

    (@paul-skip-brown)


    Hi I know get_permalink returns the URL. Some of my posts are redirected and at the same time I update the canonical link to the redirected post URL – (normally relates to post updates).

    Is there a function I can use to return the canonical URL of a post if it has one rather than it’s ‘permalink’ URL? I use Yoast SEO to edit canonical URLs and also apply redirects.

  • The topic ‘Get canonical link’ is closed to new replies.