I'm getting duplicate canonical tags on my pages and posts, one is inside of the WordPress SEO 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:
remove_action('wp_head', 'genesis_canonical'); remove_action('wp_head', 'rel_canonical');
... 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 as this is driving me crazy.