Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

@amirzwp

Participant

sure, yoast SEO (Also Premium version) is enabled.

I tried both of the codes you sent me, both doesn’t have an effect on the Meta Title.

The snippet with the following code is still activated on the website:

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;
}

So you can check, if there happend something. I deleted the other snippet because it also didn’t had an effect on the website. But when it has an effect, it’s not so good because the website is live.

Thanks for your time.

Skip to toolbar