Reply To: bbPress and Yoast SEO conflict – How to change the meta title for the replies?
thanks – just to ask the obvious, you are running the yoast plugin ?? 🙂
then as a test can you try a correction to my previous code
add_filter( 'wpseo_metatitle', 'rew_meta_title' );
function rew_meta_title( $title ) {
global $post ;
if ($post->post_type == 'reply' ) {
$title = 'this is a reply' ;
}
return $title;
}
if that fails, can you try (as a test only)
add_filter( 'wpseo_metatitle', 'rew_meta_title' );
function rew_meta_title( $title ) {
$title = 'this is a reply' ;
return $title;
}
This should put that phase at the top of every pages, and will at least show that the filter is working.