Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Provide ability to bulk noindex posts based on language when a multilingual plugin is in use #9192

Open
Pcosta88 opened this issue Mar 12, 2018 · 10 comments

Comments

@Pcosta88
Copy link
Contributor

Pcosta88 commented Mar 12, 2018

When a mulitlingual plugin is used like WPML, Yoast outputs all the posts/pages/produces, regardless of language, into the sitemap.

Providing a feature to bulk exclude posts/pages/products based on the language would provide a better user experience and allow users to customize the sitemap for SEO purposes.

For example:

If I have products in two languages: NL and EN. And I no longer sell products in NL or I want to temporarily discontinue my NL Dutch language product offerings. I am unable to bulk noindex those products based on the language. I am not able to remove them from the sitemap.

Providing me with a feature to bulk noindex those products based on the language will then remove them from the sitemap and provide me with a better user experience and more specific SEO customizations. This is especially true since not all user's of our products know how to edit theme files.

WORKAROUND

In order to noindex them users would need to develop the ability using the code snippets here https://gist.github.com/amboutwe/0c71e42aa164238007d7ea88f174a93f/#file-yoast_seo_robots_remove_single-php.

If they want to remove it from the sitemap they would need to use our filter: wpseo_exclude_from_sitemap_by_post_ids as just noindexing them is not enough to get them removed from the sitemap.

Something like:

add_filter( 'wpseo_exclude_from_sitemap_by_post_ids', function () {
    return array( post_ID_here, Post_ID_here );
} );

The end result of the workaround is that the translated page has a noindex tag on it and is removed from the sitemap.

@Pcosta88
Copy link
Contributor Author

Please inform the customer of conversation # 298340 when this conversation has been closed.

@jdevalk
Copy link
Contributor

jdevalk commented Mar 12, 2018

This makes no sense. Are those pages noindexed?

Basically, if they're not noindexed, they should be in the XML sitemap. Making any other decision would be wrong.

If they are noindexed, we should exclude them and this is not a feature request but a bug report :)

@jdevalk
Copy link
Contributor

jdevalk commented Mar 12, 2018

@Pcosta88 please either close or change to bug report according to feedback above :)

@Pcosta88
Copy link
Contributor Author

@jdevalk An example provided, I did.

@mayada-ibrahim
Copy link

Please inform the customer of conversation # 502400 when this conversation has been closed.

@Pcosta88
Copy link
Contributor Author

Please inform the customer of conversation # 558091 when this conversation has been closed.

@Pcosta88
Copy link
Contributor Author

Please inform the customer of conversation # 568779 when this conversation has been closed.

@omarreiss
Copy link
Contributor

@Djennez going through all type:development issues. But I don't see why this is labeled as such. Shouldn't this be moved to bugreports?

@Pcosta88
Copy link
Contributor Author

Pcosta88 commented Jan 25, 2021

@omarreiss The report was opened as a feature request to provide the ability to bulk noindex a language. I've updated the title to reflect this. I have also removed some superfluous information.

We have no way to do that.

@Pcosta88 Pcosta88 changed the title [Feature Request] Provide ability to bulk exclude posts based on the language when a Multilingual plugin is used [Feature Request] Provide ability to bulk noindex posts when a multilingual plugin is in use Jan 25, 2021
@Pcosta88 Pcosta88 changed the title [Feature Request] Provide ability to bulk noindex posts when a multilingual plugin is in use [Feature Request] Provide ability to bulk noindex posts based on language when a multilingual plugin is in use Mar 8, 2021
@mmikhan
Copy link
Member

mmikhan commented Jul 22, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants