Hi,
I have a problem with archive pages of categories. They show a noindex in the header.
In the general settings of wordpress for reading the option „prevent search engines from indexing“ ist NOT chosen. (While testing I had this option chosen.)
In the SEO-Tool the categories are set to be indexed. In source code you can see this at the top.
Do you have any idea how to fix this?
Thank you.
Best regards,
Vera
Hey Vera,
Thank you for the inquiry.
Looks like you’re using the RankMath plugin. Please go to the Admin > Rank Math > Titles & Meta, open the Archives tab and make sure that all archive types are set to index, follow. Let us know of the result.
Best regards,
Ismael
Hi Ismael,
the settings for Rank Math are fine. I checked that in the source code.
In line 17 you can see that Rank Math settings show “index”.
The problem is above in line 5. There is a noindex that comes before the Rank Math settings.
Best regards,
Vera
Hi,
Thank you for the info.
Please try to add this filter in the functions.php file:
function avf_disable_all_meta_tags( $meta, $robots, $blog_public ) {
return '';
}
add_filter( 'avf_set_follow', 'avf_disable_all_meta_tags', 10, 3 );
Best regards,
Ismael
Hi Ismael,
Great! That worked. I can see it in the source code an Google accepts now the request for indexing.
Thanks a lot!
Best regards,
Vera
Hi,
Great, I’m glad that Ismael could help you out. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
Rikard
Hi Rikard,
You can close the topic.
Thank you for your support.
Best regards,
Vera
Hi,
Thanks for letting us know. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard