Support » Fixing WordPress » How To Add The Canonical Link For Every Blog Post

  • Hi,

    1. I want to add canonical link to my blog posts.
    The solution I have found is adding the following:

    <link rel=”canonical” href=”<?php the_permalink(); ?>”/>

    2. The problem with that solution is that it adds forward-slash ‘/’ at the end of every permalink whereas I want to have the following format:

    <link rel=”canonical” href=”http://www.letthemstare.com/aventure-dress-giveaway” />

    3. How can I add canonical link to all of my blog posts WITHOUT having the forward-slash at the end?

  • The topic ‘How To Add The Canonical Link For Every Blog Post’ is closed to new replies.