In SEO > Search Appearance > Content Types / Taxonomies / Archives, anything that should be indexed should have the “Show [item] in search results?” set to Yes.
Can you confirm this?
Also, this is not visible on your site right now, so can you capture the respective HTML source with the issue in effect?
@ayush2308 There are a number of ways you can set pages to noindex, so we would recommend checking all of them. We would recommend checking to make sure the robots meta tag is NOT set to ‘noindex’ for the page/post in Yoast SEO, and you can check this setting by performing the following actions:
Go to the Edit screen for a page/post
Scroll down to the Yoast Metabox
Click on the ‘Advanced’ area
For ‘Allow search engines to show this Page in search results?’ make sure this is set to ‘Yes’
Note (setting this value to Yes will set meta robots to ‘index’ and setting No would set meta robots to ‘noindex)
In addition, you can set pages/posts to be indexed by performing the following actions:
In WordPress go to SEO>Search Appearance>Content Types
For Pages set ‘Show Pages in search results’ to ‘Yes’
Click ‘Save Changes’
As for the global indexing of the site in robots.txt, you can check this in the following way:
In WordPress go to Settings>Reading
Make sure for ‘Search Engine Visibility’ that ‘Discourage search engines from indexing this site’ is NOT checked
Click ‘Save Changes’
We also have a guide on configuring the robots meta tag located at the following link: https://yoast.com/wordpress/plugins/seo/yoast-seo-robots-meta-configuration/ as well as a guide on how to set a page/post’s meta robots tag to index/noindex here: https://kb.yoast.com/kb/how-do-i-noindex-urls/
Hi @galbaras have checkedd the settings mentioned by you but the issue still persists.
@devnihil Have followed steps sent over by you, but still facing the problem. It doesn’t remove the noindex tag.
<meta name=”robots” content=”noindex,follow”/>
-
This reply was modified 4 years, 2 months ago by ayush2308.
Based on HTML source, it seems that the conditional tag is_search is true for this page:
<body data-rsssl=1 class="home archive search search-results ...
It’ll be good to you install QM plugin and make screenshot of conditional tags ( https://kinsta.com/blog/query-monitor/ ).
Actually, in the source of the page, the body tag has the classes “search” and “search-results”.
Is it possible this is caused by the page template? For some reason, the page is seen as a search page. If you change this, things should be different.
@ayush2308
If you are still experiencing an issue with the noindex tag being added, it seems like a plugin or theme conflict. Please Check for conflicts and let us know if the theme or the theme’s templates may be causing the issue.
@pcosta88 From what I see on the OP’s site, the body classes are different and so is the robots tag. I think you can close.
@galbaras It’s not bec of the template i think. Checking the body classes now once for the issue.
@pcosta88 Thanks I’ll try this out right away
@ayush2308 your robots tag now reads:
<meta name="robots" content="max-snippet:-1, max-image-preview:large, max-video-preview:-1">
@ayush2308 There is weird combination of “CSS classes” (which is just consequence). Please make screenshot of all conditionals (QM menu -> is_search() when you open this URL as administrator) if you wan to we help.
By default, Yoast SEO sets noindex for “search results”. I suppose that’s reason why page is no-indexed (and you can’t change it into dashboard). It’s possible that there is custom rewrite rule (make screenshot of QM -> request to we can debug “page type” ). Other possibility is that some plugin/custom code overwrites main WP query.
Now, it’s recognized as “blog page” and is_search is false. Page layout is changed (before it was looked as “shop catalog”). It’s reason why Yoast SEO doesn’t add noindex.
@stodorovic we had to change that, You can try at goodstuff.co instead
@galbaras can you also try once at goodstuff.co