2016-02-13, 21:53:32
Canonical URLs for single post pages:
In your template, change this line:
by this:
(If you use I18N, replace get_header by get_i18n_header)
In your template, change this line:
Code:
<?php get_header(); ?>
Code:
<?php
if (nm_is_single()):
get_header(false);
echo "\n",'<link rel="canonical" href="',nm_post_url(false),'" />';
else:
get_header();
endif;
?>