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
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)
@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?