Keep Specific Pages Out From Search Engine: SEO For WordPress

Hey this post belongs to solve your all indexing problem of wordpress page, post, category, tags and so on. I will give you details information about this. Have you ever want to keep your page out from search engine. In the SEO for WordPress chapter ,this index and noindex plays a great role. But you have to think that which post need to index and which need to noindex. Before start with this work hope you have finished theControl Indexing Page article. Here is my own tips for you about how to easily noindex many post with a single tag?.

  • As you want to not index some pages into search engine, you can create a tag with this post. Only this post contains this tag. And after that you can make a condition with this tag that, all post with this tag never index into search engine.

SEO for WordPress specific pages

I don’t tell you to do this into your site. I just give a tips to do it easily. I suggest tag because category may be visible into site but tag can be hide easily. Category also can be hide but you can not add all this nofollow posts into a category. You have to create something new SEO for wordpress into your site.

Have you ever wanted to make a few single post, page out of search engine? If you want to do this you can follow this tips. This is very helpful for you to make some post, page out from search engine. I am discuss details how you can do this by conditional tag into wordpress. As you work with wordpress , I think that you all have a single knowledge about PHP. Never think that PHP helps SEO but with the help of PHP condition we get help SEO for WordPress. I suggest you to follow the all Simple SEO techniques .

 

I have told you that we have to work with post or page or category ID number or tags name. You can follow the previous post for learn details about keeping a post or page out from search engine. If you don’t know how to get WordPress Page or Post ID you can follow this article and watch the video. 

Specific Pages noindex & SEO for WordPress

Just put the following code into your header.php file. As we know that meta tag should be placed into head tag of html. So in wordpress you have to do this. The header.php file the main head tag.

Exclude a specific post

<?php if(is_single('17')) { // your post ID number ?>

<meta name="googlebot" content="noindex,noarchive,follow" />

<meta name="robots" content="noindex,follow" />

<meta name="msnbot" content="noindex,follow" />

<?php } ?>

Exclude a specific page

<?php if(is_page('17')) { // your page ID number ?>

<meta name="googlebot" content="noindex,noarchive,follow" />

<meta name="robots" content="noindex,follow" />

<meta name="msnbot" content="noindex,follow" />

<?php } ?>

Exclude a specific category

<?php if(is_category('17')) { // your category ID number ?>

<meta name="googlebot" content="noindex,noarchive,follow" />

<meta name="robots" content="noindex,follow" />

<meta name="msnbot" content="noindex,follow" />

<?php } ?>

Exclude a specific tag

<?php if(is_tag('personal')) { // your tag name ?>

<meta name="googlebot" content="noindex,noarchive,follow" />

<meta name="robots" content="noindex,follow" />

<meta name="msnbot" content="noindex,follow" />

<?php } ?>

Exclude multiple tags

<?php if(is_tag(array('personal','family','photos'))) { ?>

<meta name="googlebot" content="noindex,noarchive,follow" />

<meta name="robots" content="noindex,follow" />

<meta name="msnbot" content="noindex,follow" />

<?php } ?>

Exclude posts tagged with certain tag(s)

<?php if(has_tag(array('personal','family','photos'))) { ?>

<meta name="googlebot" content="noindex,noarchive,follow" />

<meta name="robots" content="noindex,follow" />

<meta name="msnbot" content="noindex,follow" />

<?php } ?>

After all you must need to read the meta tag html article before work this SEO for WordPress chapter.

Full video for index and noindex WP page, post, tags

If you like to see this work practically you have to see the following video.

Hope now it’s clear to you. If you like this ,share it with your friends and others.

Roy Jemee is a professional Blogger. Apart of blogging he likes to play with mathematics. He knows Blogging, Wordpress, PHP, javascript , SEO and some other.