Wordpress is a great free platform for bloggers but can’t be left as it is just after installation. It needed to do some SEO adjusting.
- Don’t leave your post links like this: http://yourblogdomain/?p=152
Settings --> Permalinks --> Custom Structure, add:
/%year%/%monthnum%/%postname%.html - Post title, it’s better to place the title of your post before the blog’s title, or even better if it is showed just the post title: in your template header.php, delete whatever there is between
<title></title>
and add: - Add this canonical plugin to prevent duplicate content: Canonical URL's for WordPress (duplicate content is penalized by Google)
<?php
if ($paged!=0) {
echo "Pagina ".$paged." - ";
}
if ( is_single() || is_page() ) { // single pages are the most visited; => top IF
$post_custom = get_post_custom($post->ID);
$custom_desc_value = $post_custom["title"][0];
if($custom_desc_value) {
echo $custom_desc_value;
} else {
wp_title('');
}
}
else {
if (is_home()) { bloginfo('name'); }
else {
if ( function_exists("is_tag") && is_tag()) {
if (function_exists('single_tag_title')) single_tag_title();
} else {
wp_title('');
}
}
}
?>
No comments:
Post a Comment