Notifications
Clear all

wpForo 1.x.x [Closed] Strange tag index title by Google

4 Posts
3 Users
0 Likes
1,314 Views
adisaputro
Posts: 127
Topic starter
(@adisaputro)
Estimable Member
Joined: 5 years ago

Hello,

I was checked my forum on google and I got the tag title indexed by google as "tag name--forum name" as you can see in my screenshot bellow:

I think this is not good for SEO, please help

Thank you

Topic Tags
3 Replies
Posts: 986
Moderator
(@martin)
Support Team
Joined: 8 years ago

Hi @adisaputro,

Please let me know, why you think this is not good for SEO?

In case you want to add some text before (prefix) or after (suffix) the tag you can use this simple code in your active WP theme functions.php file:


function wpforo_custom_tag_title( $tag_title ){
$prefix = 'Topic Title: ';
$suffix = '';
if( !empty($tag_title) ){
foreach( $tag_title as $part => $title ){
if( $part === 0 ) $tag_title[ $part ] = $prefix . $title . $suffix;
}
}
return $tag_title;
}
add_filter('wpforo_seo_tag_title', 'wpforo_custom_tag_title', 10);

How to Easily Add Custom Code in WordPress (without Breaking Your Site)

adisaputro
Posts: 127
Topic starter
(@adisaputro)
Estimable Member
Joined: 5 years ago

@martin thank you for the fast respond, I think with double character like "--" is not good SEO because google may think that character is useless, how to edit or modify this..

Can you elaborate what your code purposes and can you give me an example to use that code?

1 Reply
Robert
Admin
(@robert)
Joined: 8 years ago

Support Team
Posts: 10503

@adisaputro

This is not wpForo chars. wpForo tag title looks like this:

seo - wpForo Support Forum

wpForo only use " - " for separation. Your case a site specific case, it comes from your plugins or from you tag. Maybe your tag has a en extra "-" in it. In any case this issue doesn't come from wpForo. Check other tags if you see the same "--" try to find which plugin does this. Also this maybe hooked by your theme or some custom code in theme's functions.php .

You can check the real tag titles of wpForo here:

https://wpforo.com/community/?wpfin=tag&wpfs=seo