Notifications
Clear all

wpForo 1.x.x [Closed] problem index foro

10 Posts
3 Users
0 Reactions
2,085 Views
Posts: 120
Topic starter
(@franricht)
Estimable Member
Joined: 6 years ago

Hello friends.
I have a serious problem, most of my forum content is not indexed in google.
Google tells me: the tag · "noindex" has been detected in the "robots" meta tag
More than 1500 pages are not indexed in google.
I suppose this is because my site uses the structure of a forum and not that of a normal blog.
The problem is that I can't find where to modify the non-index tag.
robots.txt is correct, that's not the problem.
any solution?
Thank you!

I used the plugin rankmath.

How to correctly index the content of the forum?

site: forocomprasonline.com

9 Replies
Posts: 992
Moderator
(@martin)
Support Team
Joined: 8 years ago

Hi @franricht,

First I'd like to say that you've killed all your forum SEO using rank math seo plugin. This plugin was compatible a wile ago, but in recent versions it has changed something and become incompatible. I see all your forum and topic titles are affected and all those are the same site URL. There is no dynamic titles on forums and topics. You should put this code ASAP in your current active WordPress theme functions.php file:

Here is the final code. You should put it in the active WordPress theme functions.php file:

add_action( 'wp_head', function() {
if( function_exists('is_wpforo_page') && is_wpforo_page() ){
remove_all_filters( 'pre_get_document_title', 15 );
}
}, 1 );

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

 

Posted by: @franricht

I have a serious problem, most of my forum content is not indexed in google.
Google tells me: the tag · "noindex" has been detected in the "robots" meta tag
More than 1500 pages are not indexed in google.

This is a different issue and this is not related to the rank math plugin. I think this is not an issue at all. wpForo has many links with no follow attributes and they don't need ot be indexed in order to avoide the same content duplication.

For example. This topic is indexed by Google:

https://forocomprasonline.com/foro/consejo-smart-tv/como-pedir-consejo/

But in the forum footer you can see "Mark all read" button with this URL:

https://forocomprasonline.com/foro/consejo-smart-tv/como-pedir-consejo/ ?foro=allread

Both go to the same page, but the second does some action in background corresponding the red marked request. So we set "nofollow" to links with some action request, because they are the duplocation of already indexed original topic. In other words, all your original topics are indexed, you should not worry about that 1500 duplicated error reports.

In next version we'll try to stop those unnecessary reports with some workaround.

Posts: 120
Topic starter
(@franricht)
Estimable Member
Joined: 6 years ago

Thanks, I've already added the code to functions.php

So should I disable the RankMath plugin?

As for google indexing if I think there is a problem,
The link https://forocomprasonline.com/foro/consejo-smart-tv/como-pedir-consejo/ I manually index it.

In the google coverage it tells me that I only have 33 pages indexed!

When in the forum there are many topics and sections.

Are you sure it's okay like this?

Posts: 120
Topic starter
(@franricht)
Estimable Member
Joined: 6 years ago

Hello, from rank math they give me these indications in case they serve you:

"Hello,

We have taken a closer look at this and it appears that the WPForo team has changed the priority of the WP hook in their plugin. The priority of wp hook should be 11, now it is 10. It basically means that Rank Math’s meta is NOT taking priority over wpForo’s meta.

Please contact wpForo team and ask them to change the priority back to 10. Here is a code can provide the wpForo team which will fix this issue immediately:

add_action( 'wp', function() {
	if ( ! wpforo_feature( 'seo-meta' ) ) return;
	if ( is_wpforo_page() ) {
		if ( defined('RANK_MATH_FILE') ) { // Rank Math SEO
			add_filter( 'rank_math/frontend/remove_credit_notice', '__return_true' );
			remove_all_actions( 'rank_math/head' );
			remove_all_filters( 'pre_get_document_title', 15 );
			add_action( 'wp_head', '_wp_render_title_tag', 1 );
		}
	}
}, 11 );

"

regards

Posts: 992
Moderator
(@martin)
Support Team
Joined: 8 years ago

o*g....

You did all wrong.

The PHP code should be added after the <?php tag not before:

 

Page 1 / 2