Notifications
Clear all

[Solved] Topic Prefix Google Search

6 Posts
2 Users
2 Reactions
1,097 Views
Posts: 31
Customer
Topic starter
(@tim40)
Member
Joined: 8 years ago

I really like Google search because it's so flexible and smart. I often use it to perform a search on the forums on my site by doing something like this:

my search phrase site:augforums.com/forums

I'm now using the Topic Prefix add-on to put each Discussion Topic into one of two categories:

1. Questions

2. Notes

Can you think of a way for me to tell Google to only search the "Notes" Topic Prefix?

5 Replies
Posts: 4213
 Tom
Admin
(@tomson)
Famed Member
Joined: 10 years ago

I'm sorry, but there is no way to do that. Topic prefixes are not included in the SEO titles of topics. So the search engines doesn't see them. We can add an option to include prefixes in the titles in future releases. But it'll not add any rule in Google Search either. It'll be regular search supporting phrase.

1 Reply
Customer
(@tim40)
Joined: 8 years ago

Member
Posts: 31

@tomson No problem. Thought it was a long shot, but worth asking.

Posts: 31
Customer
Topic starter
(@tim40)
Member
Joined: 8 years ago

Actually, I realized that it would still be really helpful if you could add this in a future release, even if it's only a general search.

I'm using a hashtag in my topic prefix (#AcumaticaTnT) which should make the general search more effective.

But I can see that, at the moment, the topic prefix has rel="nofollow" which is preventing Google from seeing it:

image

Do you think you could remove, or add an option to remove, the rel="nofollow" tag in a future release, hopefully even the next release?

2 Replies
 Tom
Admin
(@tomson)
Joined: 10 years ago

Famed Member
Posts: 4213

@tim40,

I'm sorry, but we're not going to remove it. The topic prefix URLs like Tag URLs go to a page where the topic list is dynamic. This kind of links don't have a real SEO weight. However, we've left a hook to manage topic prefix links. So if you want to remove the rel="nofollow" attribute, you should put this hook code in the functions.php file of your current active WordPress theme:

add_filter('wpforo_topic_prefix_link', 'wpforo_remove_nofollow_from_prefix_link');
function wpforo_remove_nofollow_from_prefix_link( $link ){
$link = str_replace(' rel="nofollow"', '', $link);
return $link;
}

 

Customer
(@tim40)
Joined: 8 years ago

Member
Posts: 31

@tomson Thank you! That worked! I had resorted to modifying the wpforotpx.php file, resolved to redo the change every time the plugin gets updated. But this is much better!

Share:
Scroll to top