rel=canonical missing on whole site, except anspress pages
Hi.
I’m using Anspress, but I realised it removes all rel=canonical tags placed by Yoast SEO on my website.
I found this function in /includes/class-theme.php, but I don’t know why it remove canonical on the other pages / taxonomies, it should only replace it on question taxonomy.
$this->ap->add_filter( 'wpseo_canonical', $this, 'wpseo_canonical' ); ... public function wpseo_canonical() { if ( is_question() ) { return get_permalink( get_question_id() ); } }
Is there any workaround for this, except replacing Yoast SEO with another SEO plugin.
Thanks in advance,
Cristian
Hello, This issue was already solved in AnsPress 4.