noindex issues
-
I have spent some time over the last few days trying to debug this issue. I have a lot of pages that are not currently indexed due to a noindex meta tag.
I have narrowed it down to SEO Framework (disabling the plugin resolved the issue)
I checked all SEO Framework settings as well as settings in any other plugins I have which could theoretically have some kind of setting. I also checked the affected pages (in this example it is a product category) and ensured they are set to be indexed.
Here is the complaint from Google Search Console:
——
Indexing allowed?
error
No: ‘noindex’ detected in ‘robots’ meta tag
——
This is a sample url that is failing:
https://highlandmoss.com/house-plants/wee-plants/
Here is the meta tag being generated:
<meta name="robots" content="noindex,max-snippet:-1,max-image-preview:large,max-video-preview:-1" />
I attempted to manually override the issue by adding this code snippet, but it has no effect.
function remove_noindex() { // Check if it's a single post of type 'post' if ( is_single() && get_post_type() == 'post' ) { echo '<meta name="robots" content="index,follow" />'; } // Check if it's a WooCommerce product category elseif ( is_product_category() ) { echo '<meta name="robots" content="index,follow" />'; } } add_action( 'wp_head', 'remove_noindex' );
I flushed the object cache, wprocket, cloudflare etc but now running out of ideas.
As SEO Framework is made with an abundance of confidence, it does mean a lot of things are automated and so I don’t want to tinker with it. I was hoping for direct help from the developer but this forum is where I was directed.
I did a search and found other people had sort of similar issues but couldn’t find a solution that worked for my instance.
Thank you to anyone that can help me out.
The page I need help with: [log in to see the link]
- The topic ‘noindex issues’ is closed to new replies.