WordPress: Noindex specific posts and pages!
The single most requested feature for my robots meta plugin was to have the ability to add noindex tags to specific posts and pages from within the write post and write page admin screens. I've now fixed that, with the release of version 2.0 of this plugin!
For those that have not updated since 1.4: you can now also edit the robots.txt and .htaccess from within the Robots Meta admin page.
So I'd say: download the new version, and play with it!
Read more about WordPress SEO, and get the most out of your blog!





by Nicholas on 12 October, 2007 at 09:35
Seems like you should also have the option of not adding any tags, or have I missed something?
by Joost de Valk on 12 October, 2007 at 10:05
if you do "index,follow" it will not add any, as that's the default.
by John H. Gohde on 13 October, 2007 at 17:18
I am running WordPress 2.2.3 and get the following error which prevents posts and pages from being saved.
WordPress database error: [Unknown column 'robotsmeta' in 'field list']
UPDATE wp_posts SET robotsmeta = 'index,follow' WHERE ID = 65
I have been using the All-In-One plugin for a few months.
What I like about your plugin is that I can prevent Subpages of the homepage from being indexed.
by Joost de Valk on 13 October, 2007 at 20:34
Hi John,
I'd try disabling and then enabling the plugin, and see if the problem still occurs. Sounds a bit Windows-ish, but there's actually an on-activate function which creates that column in the database.
by Niccolò Favari on 26 October, 2007 at 15:51
Hello!
I'm using this plugin with wordpress 2.3 but I'm getting the same error John has.
Plugin version is 2.2
Also I've noticed that it does not change my robots.txt nor my .htaccess files though it saves the options if I edit them in the option panel.
by Joost de Valk on 26 October, 2007 at 15:53
Hmm Niccolo, the first one is a known issue which i'll try to solve ASAP (as soon as i get out of the conference I'm currently in) and the other one is actually new to me...
by Niccolò Favari on 26 October, 2007 at 16:16
So I'll try to make some changes here and there... I'll try rewriting from scratch my htaccess and see what happens. I'll try with permissions and server error logs... I'll keep you updated.
I'll eventually post you my folder structure and options so we can sort this out.
Later Joost!
by Joost de Valk on 26 October, 2007 at 16:18
thx Niccolo :)
by Lochlin Black on 31 October, 2007 at 12:42
When I install the plugin I get this error:
Fatal error: Call to undefined function: is_tag() in /homepages/32/d211729909/htdocs/wp-content/plugins/robots-meta/robots-meta.php on line 555
How can I fix this?
Cheers
Lochlin
by Joost de Valk on 31 October, 2007 at 17:41
Lochlin: let me guess, you're not on 2.3 or higher? I'll have to fix that...
by Lochlin Black on 31 October, 2007 at 17:49
You would guess right... I am on 2.2.2 I will have a shot at upgrading and see how I go.
by Joost de Valk on 31 October, 2007 at 17:50
That would fix it yes.
by John H. Gohde on 1 November, 2007 at 15:19
Windows-ish? Your plugin simply stopped working on my setup. So, I dropped it. I was actually able do duplicate all your important features myself with a couple of hacks to the Header template of my theme.
by Joost de Valk on 1 November, 2007 at 16:18
John: sorry to hear that it stopped working, i've updated it this morning to fix quite a few bugs, you might want to try that version.
There's a lot of this which you can't do in a template, you can't add noindex to your template and make it show up easily for specific pages...
by Trophaeum on 24 November, 2007 at 14:15
Just what i was looking for! Need to noindex,follow my sitemap pages and all-in-one seo pack didnt seem to do it, now to see if this has everything i need in it or if i have to do a mashup!
by Joost de Valk on 24 November, 2007 at 15:59
@Trophaeum: good :)
by MysteryDisciple on 8 December, 2007 at 00:52
Got this error after trying to activate:
Array
Warning: Cannot modify header information - headers already sent by (output started at /home/psvyuplc/public_html/blog/wp-content/plugins/robots-meta.php:734) in /home/psvyuplc/public_html/blog/wp-includes/pluggable-functions.php on line 270
But now on the page it says it's activated?
by Rasheed on 25 February, 2008 at 08:39
I like (and use) this plugin beacause it is very useful.
But I have a problem:
I have deleted some posts from my wordpress blog. These posts still indexed in google. As I found, it is impossible to use your plugin to (noindex) deleted posts, so i tried many methods in order to block+remove these urls from google without success.
I am using robots.txt to block undesired links.
My blog has the default links:
http://www.example.com/?p=10
http://www.example.com/?p=11
http://www.example.com/?p=12
I will be grateful if you tell me how can i block and remove these specific links from google.
Rasheed.
by Joost de Valk on 25 February, 2008 at 08:41
Hi Rasheed, the fastest way is to use the URL removal tool for those posts:
http://www.google.com/support/webmasters/bin/answer.py?answer=61062
by Rasheed on 25 February, 2008 at 08:50
Hell Joost,
Thanks for your quick respond.
I have tried to remove it through Google Webmaster Tools but it returns(Denied)as shown in this screen shot:
http://img401.imageshack.us/my.php?image=ddwy0.gif
In order to remove links from google index these urls must be blocked at first. The problem i can't block these dynamic urls.
by Joost de Valk on 25 February, 2008 at 08:53
Yes you can, just add this to your robots.txt:
Disallow: /?p=85
etc.
by Rasheed on 25 February, 2008 at 09:12
It had been added ,as you described, before many months but it still not blocked.
Disallow: /?p=174
Disallow: /?p=7
Disallow: /?p=95
Disallow: /?p=80
And also tried:
Disallow: /?p=174/
Disallow: /?p=7/
Disallow: /?p=95/
Disallow: /?p=80/
My robots.txt works like a charm but concerning this issue it is simply not working.
by Joost de Valk on 25 February, 2008 at 09:25
Hmm have you tried testing the robots.txt with the robots.txt validator inside google webmaster tools?
by Rasheed on 25 February, 2008 at 09:31
Yes.
Also validated it here:
http://tool.motoricerca.info/robots-checker.phtml
The result:
No errors found in this robots.txt file
by Joost de Valk on 25 February, 2008 at 09:32
Which pages did it say you were blocking?
by Rasheed on 25 February, 2008 at 09:38
The result:
===================================
The following block of code DISALLOWS the crawling of the following files and directories:
/*p=174/ /*p=7/ /*p=95/ /*p=80/ /*?p=179/ /?p=178/ /*?p=155/ /*?p=66/ /*p=193/ /*p=407/ /?p=189/ /?p=59/ /?p=465/ /*?p=85/ /*p=232/ /*p=117/ /*?p=368/ /*?p=350/ /*p=76/ /*p=85/ /*p=379/
to the following spiders/robots: Googlebot
===================================
As you see i tried many combination to see which of them is effective.
/*p=00/
/?p=00/
/*?p=00/
None of them worked.
by Joost de Valk on 25 February, 2008 at 09:43
Ah, try adding a ^ in front, so doing:
Disallow: ^/?p=174$
by Rasheed on 25 February, 2008 at 09:54
Disallow: ^/?p=174$
Or
Disallow: ^/?p=174$/
?
Thanks
by Joost de Valk on 25 February, 2008 at 09:55
The first.
by Rasheed on 25 February, 2008 at 10:01
Thanks Joost.
It had been done.
I will inform you later with the results.
I appreciate your generous help.
By the way, your blog is one of my subscriptions at google reader.
by Joost de Valk on 25 February, 2008 at 10:03
Glad to be of assistance, hope you keep enjoying the blog!
by K1DF0X on 27 April, 2008 at 09:46
Would it best that set noindex for tags just as well the others?
by Flo on 15 July, 2008 at 13:12
Hi there Joost. Great plugin you've created there, I already love it.
But sadly I have a little Problem already:
First: Iam using wp 2.5.1 with an actual theme. The installation is quite fresh and there are not much plugins in it.
Problem: When I want to use a nofollow tag on a single page, it doesn't take effekt on this page. Neither there's a radio button checked by standard, nor after activating it and saving the page (the dot is removed again after reloading). The result is that the nofollow tag is missing in the source code.
I think the problem is my wordpress version, because on another blog i have 2.3 and the whole thing works perfect.
Please help :)
Greetings,
Flo
by syed on 18 September, 2008 at 06:06
Hi
Can any one tell me how can i know that my pages are index or noidex format. If my pages are in noindex format how can i change it to index while using wordpress.
Thanks
Pingback: The Guest Book | How To Blog
by Mike @ WPF Dev on 22 October, 2008 at 05:25
Nice! This plugin's perfect for my needs.
Thanks!
Pingback: Noindex plugin untuk memproteksi ranking blog | Belajar blog Wordpress - Artikel Seo
by Oscar on 24 March, 2009 at 08:29
thank you man, the right plugin i need.
I want to add enough content to my blog in short time, I only have some plr articles, but really lazy to rewrite them, so i plan to copy and paste, but I think google may penalize my site, so i want these posts to be not indexed, ,,spend some time to search around, finally find your site:) glad to find your plugin!
thanks again, nice work!
by Oscar on 25 March, 2009 at 02:49
Hi, i have a problem, i find the plugin do not work if i make a post scheduled, when the scheduled post publish, i do not see the noindex tag in the meta. btw, i also use all in one seo plugin, does it matter?
Pingback: Support and FAQ
by Lucas on 19 June, 2009 at 13:15
Dear Joost,
first of all thanks for your great plugins.
I was wondering: it is possible to exclude from indexing just some selected tag pages (eg: tag/john - tag/smith - etc.)?
Thank you very much in advance.
by Curt Wagner on 23 October, 2009 at 15:16
Hello,
I was just trying to install your plugin and got this error on install:
Warning: touch() [function.touch]: SAFE MODE Restriction in effect. The script whose uid/gid is 1165/531 is not allowed to access /tmp owned by uid/gid 0/0 in /home/.sites/22/site31/web/site/wp-admin/includes/file.php on line 174
Can you help?
Thank you for your hard work and support!
Curt Wagner