Yoast SEO
[resolved] [Plugin: WordPress SEO by Yoast] Canonical URL Code to be used elsewhere? (3 posts)

  1. Jim
    Posted 5 years ago #


    Love the plugin, and looking to subvert it's functionality a little.

    I'm looking to send the current URL a user is on into an email newsletter sign up form along with the user's info. It will help me track what content is most useful to our users.

    With the email signup form in the sidebar template, would I be able to use the same canonical URL attribute that you use to print it in the header? If so, what would the code be?

    Thanks so much,

  2. Jim
    Posted 5 years ago #

    Anyone, anyone, Bueller, Bueller?

  3. Joost de Valk
    Plugin Author

    Posted 5 years ago #

    echo $wpseo_front->canonical( false ); should probably work :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic