2016-02-13, 23:45:09
(2016-02-13, 21:53:32)Carlos Wrote: Canonical URLs for single post pages:
In your template, change this line:
by this:Code:<?php get_header(); ?>
(If you use I18N, replace get_header by get_i18n_header)Code:<?php
if (nm_is_single()):
get_header(false);
echo "\n",'<link rel="canonical" href="',nm_post_url(false),'" />';
else:
get_header();
endif;
?>
So nice that's exaclty what I want. Thanks a lot.