The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Duplicate canonical URLs in WordPress

    Duplicate canonical URLs in WordPress

    Technical SEO Issues
    3 2 1.3k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • robertdempsey
      robertdempsey last edited by

      Hi everyone,

      I'm driving myself insane trying to figure this one out and am hoping someone has more technical chops than I do. Here's the situation...

      I'm getting duplicate canonical tags on my pages and posts, one is inside of the WordPress SEO (plugin) commented section, and the other is elsewhere in the header. I am running the latest version of WordPress 3.1.3 and the Genesis framework.

      After doing some testing and adding the following filters to my functions.php:

      <code>remove_action('wp_head', 'genesis_canonical');
      remove_action('wp_head', 'rel_canonical');</code>
      

      ... what I get is this:

      With the plugin active + NO "remove action" - duplicate canonical tags
      With the plugin disabled + NO "remove action" - a single canonical tag
      With the plugin disabled + A "remove action" - no canonical tag

      I have tried using only one of these remove_actions at a time, and then combining them both. Regardless, as long as I have the plugin active I get duplicate canonical tags.

      Is this a bug in the plugin, perhaps somehow enabling the canonical functionality of WordPress?

      Thanks for your help everyone.

      • Robert Dempsey
      1 Reply Last reply Reply Quote 0
      • mwoody
        mwoody last edited by

        Hi,

        DOes the plugin have an option to disable canonical URL's?  For example in platinum SEO its just a tick box, when its ticked the plugin and WP itself adds the canonical tag, untick it and just wordpress adds it automatically.

        robertdempsey 1 Reply Last reply Reply Quote 0
        • robertdempsey
          robertdempsey @mwoody last edited by

          Hi Matthew - not that I saw. It appears to be a feature built in and non-configurable. Lot's of indexation options but nothing for canonicals.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Duplicate, submitted URL not selected as canonical
            seoelevated
            seoelevated
            0
            4
            938

          • Clean URL vs. Parameter URL and Using Canonical URL...That's a Mouthfull!
            Roman-Delcarmen
            Roman-Delcarmen
            0
            4
            170

          • Self referencing canonicals AND duplicate URLs. Have I set them up correctly?
            LoganRay
            LoganRay
            0
            9
            187

          • Duplicate pages in Google index despite canonical tag and URL Parameter in GWMT
            Dr-Pete
            Dr-Pete
            0
            5
            2.1k

          • Showing duplicate content when I have canonical url set, why?
            askshopper
            askshopper
            0
            2
            192

          • Canonical URL
            bronxpad
            bronxpad
            0
            3
            263

          • Using Canonical URLs option in Platinum SEO for Wordpress
            mad2k
            mad2k
            0
            2
            936

          • Should Canonical URLs be used in Wordpress?
            BradBorst
            BradBorst
            0
            3
            835

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy