rel=canonical missing on whole site, except anspress pages

7.62K viewsIssues
1

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

0

Hi Rahul. Just checking to find out if there is any update on this

commented on answer

Same here. Have the update promissed by Rhaul Aryan have been pushed? Thanks!

You are viewing 1 out of 3 answers, click here to view all answers.