Reply To: Noidex metatag to groups of pages
Unfortunately I found this problem with the code:
add_action( 'wp_head', 'casiepa_add_noindex' );
function casiepa_add_noindex() {
if ( bbp_is_single_user_profile() ) {
wp_no_robots();
}
}
It does not add the noindex to profile sub pages:
Correctly in no NOINDEX:
/forumgm/profile/jacobus-johannes
still in INDEX:
/forumgm/profile/jacobus-johannes/topics
/forumgm/profile/jacobus-johannes/replies
/forumgm/profile/jacobus-johannes/favorites
And that is bad for Mr G indexing too many unuseful pages 🙁
the Process