how do I delete a wordpress category from google results?

Asked

Viewed 152 times

0

I have a site in wordpress with some categories for example "our customers", "portfolio", "articles" but the category our customers should not appear in the results of Google if someone can help thank

  • 1

    https://support.google.com/webmasters/answer/6062596?hl=pt-BR

2 answers

1

Another option, and I think it’s simpler, is to add a file called robots.txt to the root of the site.

Inside this file put:

User-agent: *
Disallow: /nossos-clientes

This tells all robots not to index our-customers link and everything below it. You can specify a single link if you need by placing the whole url, example:

User-agent: *
Disallow: /nossos-clientes/meu-cliente

In the above case, only the "my-client" would not be indexed and the link "our-customers" yes.

Recommended for websites in Wordpress:

User-agent: *
Disallow: /wp-admin/
Disallow: /wp-includes/

# Seus bloqueios personalizados #
Disallow: /nossos-clientes

0

You can try using the Yoast plugin and apply the code and remove only the category at hand:

  1. Install the plugin: https://br.wordpress.org/plugins/wordpress-seo/

  2. Add the code to your functions.php:

function sitemap_exclude_taxonomy( $value, $taxonomy ) { if ( $taxonomy == 'nossos-clientes') return true; } add_filter( 'wpseo_sitemap_exclude_taxonomy', 'sitemap_exclude_taxonomy', 10, 2 );

Browser other questions tagged

You are not signed in. Login or sign up in order to post.