Welcome to WebmasterWorld Guest from 54.159.143.84

Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Adding "noindex" to older posts

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

5+ Year Member



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)

WebmasterWorld Administrator rogerd is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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)

WebmasterWorld Administrator rogerd is a WebmasterWorld Top Contributor of All Time 10+ Year Member



By the way, welcome back, Sergi973! Long time no see!
7:43 am on Aug 30, 2011 (gmt 0)

5+ Year Member



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.