[wp-hackers] Canonical integration into core

mrmist listswphackers at mist.org.uk
Mon Feb 16 21:31:24 GMT 2009

In message 
<862d087f0902161325o2cc43059jd425ff4d6fa7dc99 at mail.gmail.com>, Nathan 
Rice <ncrice at gmail.com> writes
>Actually, it would be better to use is_singular there.  It catches posts,
>pages, and attachments.  While you're at it, go ahead and do this:

Good point. I pondered that whilst writing it and then forgot.

><?php if(is_archive()) {
>echo '<meta name="robots" content="noindex">
>} ?>

Not so sure about that one, though.


More information about the wp-hackers mailing list