• I am writing some code in my footer that is suppose to get the URL of the page. I can’t use <?php echo $_SERVER[‘PHP_SELF’]; ?> because it returns the long gnarly url of page.

    I am using Yoast seo that enables canonical urls. Is there a way I can call wpseo_canonical so that it gets the actual canonical url?

  • The topic ‘[Yoast SEO] ouput the value of wpseo_canonical’ is closed to new replies.