2nd Door Of Our Advent Calendar – Support in WordPress for rel=”canonical”

WordPress-Christmas-02
WordPress 2.9 will support the attribute rel and his value canonical, you can also read about it on an older post how to integrate the values and what's about it. Therefore you don't have to paste the HTML explicitly in your theme.

In previous versions of WordPress 2.9, the intergration is easy to do:

<?php if ( is_singular() ) echo '<link rel="canonical" href="' . get_permalink() . '" />'; ?>

Putting it in the header.php of the theme is the easiest way to have the link-tag in the head of your frontend.

Since WordPress 2.9 it won't be necessary because WordPress set with the help of the default filter, see wp-includes/default-filters.php, the link-tag to the hook wp_head.

add_action( 'wp_head', 'rel_canonical' );

Thereby it calls the function rel_canonical(), which simply writes the HTML and passes the link of the article. Alternatively you can disable the filter and you can use it yourself.

remove_action( 'wp_head', 'rel_canonical' ); // to delete in head

Improve SEO In WordPress With The wpSEO WordPress Plugin

all options of wpSEOThis week, my partner Sergej Müller and I released wpSEO, an SEO-Plugin for WordPress, in English. wpSEO is a highly advanced Plugin with more than 70 useful options to have a perfect optimization of your website for search engines. Dynamic and automatic creation of meta tags and titles, depending on the content, is just one of the many strengths of wpSEO.

For nearly 2 years this Plugin showed successful results while being tested by German WordPress users.

You can test this fully functional version of wpSEO for 10 days. This Plugin is free to use for every personal blog, you just have to request a free license key here. Commercial projects or ad-supported blogs have to purchase an affordable license key for this Plugin after the 10 days trial period.

20% discount until December 31st only!All we ask is a liitle bit of investemnt beforehand if you're out there to make lots of money.

DOWNLOAD wpSEO now!

Click on the image above to see all options. If you have any questions don't hesitate to contact us.

Some of the features are:

  • 301-redirect
  • Blacklist
  • Noun filtering
  • Mannually addition of metatags
  • Relevance as criteria
  • Duplicate content avoidance
  • Keyword highlighting in posts
  • SEO Monitor with Google PageRank
  • Importing and exporting your settings
  • No changes in your .htaccess required
  • Absolutely no additional database queries
  • Very fast execution
  • No need to adjust any templates
  • An included XML file with recommended options
  • Export and import of settings
  • Fully documented
  • Uninstall function
  • Import of manually entered metadata from "All in One SEO Pack"

Enjoy wpSEO for WordPress!