rel=canonical missing on whole site, except anspress pages

6.93K 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

This is still an issue. Any update on when a fix will be released?

commented on answer

Hello, This issue was already solved in AnsPress 4.

Oh ok, I didn’t realize there was a new version. I see the announcement now. Thanks. Can we uninstall “Categories for AnsPress” add-on plugin now that everything is included in core?

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!

1

Hello Cristian,

Yes that is a bug, I am pushing a fix right now.

commented on answer

thank you sir! you are the best 🙂

Hi. Where is the fix? The problem is still happening with Anspress 3.0.5. I saw this same issue somewhere and I was told to change my SEO plugin. This is not right as another plugin having issue with Anspress should not ask me to change it because they cannot fix their issue.

It is not fixed from what i see. Maybe it escaped the developer’s list. But please understand this is a free plugin from a small developer and his is doing his best.

Be polite.

Hello,
I think I ahve already fixed this. But will check it again.

Not fixed, i assure you.

BUT works right with SEO FRAMEWORK plugin. (Only?) Yoast has that problem.

I am sorry if I sounded impolite. I didn’t mean to. Anspress is the most suitable solution for my website

Hi Rahul
Do you have any idea of when the fix would be done. I know you are busy but please this is important to us and critical for our website.

Well, i wouldn’t say it is critical and not a priority.

@ngrconsumers, I will have a look this Sunday and push a fix. Please don’t worry.