[ad_1]
Hi,
I am using this code to ONLY index a list of post types:
add_filter( 'slim_seo_robots_index', function( $index ) {
if ( !is_singular( [ 'page', 'post', 'job' ] ))
return false;
return $index;
} );The problem is that even though index status looks OK in frontend post source code, in backend posts list, all indexes are dispayed as false (red icon).
On the contrary, using the following snippet displays all page indexes as green although I set them to noindex:
add_filter( 'slim_seo_robots_index', function( $index ) {
if ( is_page() )
return false;
return $index;
} );It seems backend shows the opposite of the status set with the filter.
It is very misleading and made my clients mad and made me lose a lot of time debugging and checking all my indexations on Google 🙁
Hope it can help others.
