homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / WordPress
Forum Library, Charter, Moderators: lorax & rogerd

WordPress Forum

Adding "noindex" to older posts

 6:18 am on Aug 29, 2011 (gmt 0)

I'd like to add a NoIndex meta tag in the header for posts older than 6 months. I've got a lot of them and the content is no longer relevant. I want to keep them but remove them from the Google Index.

Is there a proper way to do it, maybe a buit-in Wordpress function ?

I would like to avoid unnecessary and heavy database query or another plugin.

Thanks for any input.



 8:59 pm on Aug 29, 2011 (gmt 0)

I've never seen anything like this, although there are date-related functions that do things like remove the post date on older posts to avoid having them appear dated. This is particularly true with Google displaying post date right in the results. To add the noindex to older posts, I think you'd need to add a conditional statement in the header. Good caching should minimize any minimal performance hit.

Do these older pages generate no traffic that could be useful to the site? Perhaps you could leave them in the index and beef up cross-linking to current content. That way, if someone hit the "obsolete" page they would have some relevant choices to reach your newest content.


 9:01 pm on Aug 29, 2011 (gmt 0)

By the way, welcome back, Sergi973! Long time no see!


 7:43 am on Aug 30, 2011 (gmt 0)

Thanks rogerd,

I went with the conditional statement in header.php

Those pages generate very few traffic and really are outdated (pasts events). I want to keep them for references and because some of them have inbound links but there is really no need for them to appear in the search engines index anymore. And they represent quite a big percentage of the total content.

I'll keep them but warn the reader of the outdated content and prominently display related current events to help them find what they are looking for. I'll see how it goes.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / WordPress
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved