wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

Noindex tag is not removed from empty author pages when relevant setting is activated.

Open rmarcano opened this issue 3 years ago • 10 comments

Please give us a description of what happened

When "Show archives for authors without posts in search results?" is set to "ON" I would expect the author archive page to be added to the sitemap and for the page to be indexable by search engines.

However, right now, the page is added to the author sitemap (Correct), but the page has a noindex (incorrect).

To Reproduce

Step-by-step reproduction instructions

  1. Create a new user on the site with no posts.
  2. Under Yoast SEO > Search Appearance > Archives > "Author archives" set "Show archives for authors without posts in search results?" to "ON".
  3. Check the author-sitemap.xml. The URL should be there.
  4. Check the source code of the author archive page. There is a "noindex" tag which should NOT be there.

Expected results

  1. I expected the author archive page to be indexable by search engines.

Actual results

  1. There is a 'noindex" tag.

Workaround

Use the developer filter wpseo_robots to override the noindex. Example snippet here.

Used versions

  • WordPress version: 6.1.1
  • WordPress Theme: TwentyTwenty
  • Yoast SEO version: 19.14

Still occurs with 6.2.2 and Yoast SEO 20.11 on Twenty Twenty-Three 1.1

rmarcano avatar Jan 13 '23 22:01 rmarcano

Please inform the customer of conversation # 978770 when this conversation has been closed.

rmarcano avatar Jan 13 '23 22:01 rmarcano

Just noticed the same bug, using the same versions as well. In my case this happens because $this->model->object_id is null in this function:

https://github.com/Yoast/wordpress-seo/blob/0a1623546fed6266f466035dcf63d41209542060/src/presentations/indexable-author-archive-presentation.php#L112-L149

icedevelopment avatar Jan 17 '23 10:01 icedevelopment

I tested the previous versions of the plugin and confirmed that the problem has occurred since v19.11, which introduced some changes regarding author and indexables.

The bug also affects the SEO title and meta description tags. On author pages with no posts, the SEO title and meta description entered in the user's profile are not reflected in the frontend. The templates for authors archives defined under Yoast SEO > Settings > Advanced > Authors archives are used instead. See the screenshots below.

image

image

monbauza avatar Feb 28 '23 09:02 monbauza

Please inform the customer of conversation # 990590 when this conversation has been closed.

monbauza avatar Feb 28 '23 09:02 monbauza

The same occurs for me

jonaswannfors avatar Mar 16 '23 15:03 jonaswannfors

Any update on this? Same problem occurs for me...

FrankVisuals avatar Apr 24 '23 18:04 FrankVisuals

This is the same issue I experience.

turtlepod avatar May 22 '23 18:05 turtlepod

Please inform the customer of conversation # 1031200 when this conversation has been closed.

michaelbriantina avatar Jul 03 '23 04:07 michaelbriantina

Hi, I also have a site I work on that has this problem. We have had to disable Yoast because we publish a lot of information about each author on the site and we need that information indexed whether the author has created a post or not. Do you know when this problem will be fixed please?

Hazlitte avatar Jul 12 '23 08:07 Hazlitte

This is not a MINOR issue. We have lots of people on our WP and because of this issue - none of them are being indexed or schema is being generated. It's been over half a year and zero progress on the high issue bug... very disappointing!

Paktas avatar Jul 20 '23 13:07 Paktas