[wp-hackers] Canonical integration into core
mrmist
listswphackers at mist.org.uk
Mon Feb 16 21:13:31 GMT 2009
In message <000e0cd47e54026da204630f5102 at google.com>, zamoose at gmail.com
writes
>
>Thoughts? Reactions? 2x4's upside my head?
>
I couldn't get the plugin unzipped, so just popped a 3-line bit of code
into the theme header.
<?php if (is_single()) {
echo '<link rel="canonical" href="' . get_permalink() . '" />';
} ?>
It might be nice to have something similar in the proposed new default
theme that was being talked about.
+1 for core anyway, I can't think of a particular reason NOT to have it.
--
mrmist
More information about the wp-hackers
mailing list