Reply To: No index buddypress pages
Thank you very much for the quick reply!
Sorry I am no php pro here, tried like this but breaks page!
add_action( 'wp_head','noindex_groups' );
function noindex_groups() {
if ( bp_is_groups() ) {
echo '<meta name=”robots” content=”noindex, nofollow>'
}
}
add_action( 'wp_head','noindex_buddypress' );
function noindex_buddypress() {
if ( bp_is_groups() ) {
echo '<meta name=”robots” content=”noindex, nofollow>'
}
}
Thanks