SEO Tips & Tricks: They Don’t Want You to Know About

Not Indexing Specific Pages

by John H. Gohde on October 16, 2008

Plugins are not always needed to do simple things. There is a fairly easy way to keep specific pages and posts on your Wordpress Blog from being indexed. All it requires is the addition of a custom field. And, a few lines of coding on your header template.

 

Not Indexing Specific Pages Made Easy

Rather than being difficult, keeping specific pages or posts from being indexed by a search engine is actually quite easy.

John H. Gohde is making the assumption that most bloggers would rarely want to keep a specific page or post from being index by search engines. Therefore, use of a plugin is really totally unnecessary. All that is required is the addition of a few lines of coding to your Header (header.php) template. And, the addition of a custom field.

Not indexing specific pages and posts is a feature of the All in One SEO plugin.

 

Step 1: Modify the Header Template

First, locate the following line of php coding in your Header template.

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo(’html_type’); ?>; charset=<?php bloginfo(’charset’); ?>" />
 

Then add the following lines of coding immediately after it.

<?php
global $wp_query, $post;
$meta_words=get_post_meta($post->ID, "html_meta", true);
if($meta_words)
print ‘<meta name="robots" content="’.$meta_words.‘" />’;
?>
 

 

Step 2: Add a Custom Field

Then on each page or post that you do not want to be indexed, add a custom field called htm_meta with the value of noindex, noarchive, nosnippet, follow.

John H. Gohde asks: What could be simpler?




Author: John H.Gohde









You can leave a comment, or trackback from your own site.



Then help our blog by linking to it. Simply copy and paste the code below into your website (Ctrl+C to copy)

It will look like this: Not Indexing Specific Pages


Digg It  Add To Delicious  Stumble This  Add to Technorati





One Response:


  1. Important HTML Meta Tags | John H. Gohde Unleashed Says:

    [...] The Robots meta tag is how SEO plugins prevent certain web pages from being indexed. [...]



Leave a Comment

 

Menu

» Not Indexing Specific Pages




Most Popular Posts

  1. Virus Checkers Are Dangerous
  2. Dead Computers Cannot Be Rejuvenated
  3. Threatfire is Perfect

 

 

Subscribe

Meta


Recent Posts

  1. All in One SEO
  2. Always Keyword Stuff Intelligently
  3. Always Link To Your Home Page
  4. Anchor Text – A Pandora’s Box

Copyright (C) 2008 - 2010 by John H. Gohde
All Rights Reserved.
Email | Site Map | Advanced Search