WordPress.org

Forums

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

  1. jimbirch
    Member
    Posted 4 years ago #

    Hi,

    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,
    Jim

  2. jimbirch
    Member
    Posted 4 years ago #

    Anyone, anyone, Bueller, Bueller?

  3. Joost de Valk
    Member
    Plugin Author

    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic