Notifications
Clear all

Keeps Getting Appended

1 Posts
1 Users
0 Reactions
3 Views
Roel Developer
Posts: 36
Topic starter
(@roel-developer)
Trusted Member
Joined: 2 years ago

Hi, my site have different custom post types (via ACF) and of course forum. I am using Yoast SEO.

The problem is the -  " - Table Tennis Forum" keeps getting appended to non-forum related post 

For example: In a custom post type called Player. I set the following:

Title: Wang Chuqin
SEO Title: Wang Chuqin

However when it shows in google searches it would like this

Wang Chuqin - Table Tennis Forum

This has been a problem for months.

I added this code so that whatever the I set as title of the page will exactly reflect in google searches but its not working:

add_filter('document_title_parts', function ($title) {
unset($title['site']);
unset($title['tagline']);
return $title;
}, 999);


Topic Tags