Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: bbPress and Yoast SEO conflict – How to change the meta title for the replies?

@robin-w

Moderator

I don’t have any sites with both yoast and forums on them (my forum sites are profession related sites with private forums so don’t want to advertise!).

So I don’t know which part of the code is faulty.

If you are able to test, then start with

add_filter( 'wpseo_metatitle', 'rew_meta_title' );
function rew_meta_title( $title ) {
       if ($post->post_type == 'reply' ) {
	 $title = 'this is a reply' ;
    }
 return $title;
}

this should make the title of each reply ‘this is a reply’

if that works, then we kwow the function is working, but not getting the right answer !

If it doesn’t work, then I’ll come back with another

Skip to toolbar