Go Back   Real Estate WebDev and Marketing > Web Development > Software

Reply
 
Thread Tools Search this Thread Display Modes
  #31  
Old 05-04-2007, 04:23 PM
Jersey Girl Jersey Girl is offline
Senior Member
 
Join Date: May 2007
Location: South Jersey
Posts: 145
Jersey Girl is on a distinguished road
Default

whats that code say in english?
Reply With Quote
  #32  
Old 05-04-2007, 04:38 PM
Max's Avatar
Max Max is offline
Administrator
 
Join Date: Jan 2004
Location: Phoenix, AZ
Posts: 987
Max is an unknown quantity at this point
Send a message via ICQ to Max
Default

Looks like the code only allows to index the homepage of the blog... I wouldn't do that. Michel Grey made a video on how to make Wordpress more searchengine friendly - check it out, I think it makes more sense than that code.

http://www.wolf-howl.com/video/make-...gine-friendly/
__________________
IBS Team Editor

"The thinking that got us into this mess will be insufficient to get us out of it." Albert Einstein
Reply With Quote
  #33  
Old 05-04-2007, 04:43 PM
gmschmitz's Avatar
gmschmitz gmschmitz is offline
Member
 
Join Date: Feb 2006
Posts: 48
gmschmitz is an unknown quantity at this point
Default

Sorry in English what it does is it tells the Search Engines to index your home page & your post page to get rid of the duplicate content.

I just changed the code so it indexes the first 2 .index pages.

New Code if you want two pages indexed
Code:
<?php wp_head(); if((is_home() && ($paged < 3 )) || is_single() || is_page() ){ echo '<meta content="index,follow" name="robots" />'; } else { echo '<meta content="noindex,follow" name="robots" />';} ?>

You'll see I changed ($paged < 2 )) to ($paged < 3 )) If you wanted 5 pages you would just change that to ($paged < 6 ))
__________________
Visit my Real Estate Directory and also check out these Real Estate Agents. The USRED Blog is open to our members to post and also check out my new project, Free Real Estate Blogs.

Last edited by gmschmitz : 05-04-2007 at 04:51 PM.
Reply With Quote
  #34  
Old 05-04-2007, 04:52 PM
gmschmitz's Avatar
gmschmitz gmschmitz is offline
Member
 
Join Date: Feb 2006
Posts: 48
gmschmitz is an unknown quantity at this point
Default

I was writing this as you were posting Max, great link. I have seen this and forgot to mention the more tag option. I use the more tag on most of my post that way the index pages just show some of the post and those pages don't have duplicate content. Pretty much this code does exactly what he was talking about, blocking the robots from your categories page and the acrchive pages. Your posts still get indexed and your home page gets indexed. I just changed the above code to index more of the main pages as long as you use the more tag this is a good idea, if you don't you might not want to.
Reply With Quote
  #35  
Old 05-04-2007, 05:02 PM
Max's Avatar
Max Max is offline
Administrator
 
Join Date: Jan 2004
Location: Phoenix, AZ
Posts: 987
Max is an unknown quantity at this point
Send a message via ICQ to Max
Default

oh I see now..
Code:
<?php wp_head(); if((is_home() && ($paged < 3 )) || is_single() || is_page() ){ echo '<meta content="index,follow" name="robots" />'; } else { echo '<meta content="noindex,follow" name="robots" />';} ?>
here is what it says:

If it is a homepage AND page# is less then 3 OR it is a single post OR it is a page - do index and follow
otherwise - noindex, nofollow

__________________
IBS Team Editor

"The thinking that got us into this mess will be insufficient to get us out of it." Albert Einstein
Reply With Quote
  #36  
Old 05-04-2007, 05:23 PM
gmschmitz's Avatar
gmschmitz gmschmitz is offline
Member
 
Join Date: Feb 2006
Posts: 48
gmschmitz is an unknown quantity at this point
Default

You sure do explain it in English a whole lot better than I do. That's really what I meant to say.
Reply With Quote
  #37  
Old 05-06-2007, 05:09 PM
Max's Avatar
Max Max is offline
Administrator
 
Join Date: Jan 2004
Location: Phoenix, AZ
Posts: 987
Max is an unknown quantity at this point
Send a message via ICQ to Max
Default

BTW, I just checked my comments section in the Wordpress and I had 16 spam messages - I wasn't checking it for at least a month, but Akismet cought 5300 in the last 15 days.. so, 16 missed out of 5300 (which is about 0.3%), I think that's pretty good
__________________
IBS Team Editor

"The thinking that got us into this mess will be insufficient to get us out of it." Albert Einstein
Reply With Quote
  #38  
Old 05-06-2007, 10:49 PM
glenng's Avatar
glenng glenng is offline
Senior Member
 
Join Date: Feb 2004
Location: Naples Florida
Posts: 187
glenng is on a distinguished road
Default

I am using Akismet for my blog and it does a great job of catching spam comments. Like you Max, I have found a lot of spam comments being caught over the past several days. Someone must be trying to get some comment backlinks and just bombing away.
__________________
Glenn Ginsburg, serves the residential Naples Florida real estate market. He specializes in the Pelican Bay and Pelican Marsh master planned communities in Naples, in addition to the Bonita Springs and Estero areas of southwest Florida.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:56 AM.