• Resolved wasanajones

    (@wasanajones)


    Hi – thanks for the plugin, but rel=”canonical” is mandatory feature and I can’t seem to find/figure out how to set that.

    Please advise

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter wasanajones

    (@wasanajones)

    I edited rss-post-importer\app\classes\helpers\class-rss-pi-parser.php

    
    		$parsed_content = preg_replace('/\{\$permalink\}/i', '<a href="' . esc_url($item->get_permalink()) . '" target="_blank" rel="canonical">' . $item->get_title() . '</a>', $parsed_content);

    hopefully this will satisfy Google’s duplicate content watchdog – if this looks correct please update this piece in the next update so we won’t need to do again, thanks

    Thread Starter wasanajones

    (@wasanajones)

    oops, I didn’t see the editor settings for each feed source that has canonical settings. good job.

    so what you are saying is that the code above will save us from google duplicate watchRobots? where can one put it in the plugin? hope it works well? also what if the plugin updates does it go away? do u still need to re-edit it and add it?

    Thread Starter wasanajones

    (@wasanajones)

    hi —

    the plugin actually includes this feature built-in, you can’t see all options in the Admin Settings unless you’re in different parts — the area where you setup the feed has the option to add “SEO canonical URLs ?”

    I didn’t look at the code generated on a page but I’m assuming it is added correctly.

    It is an important feature and glad the plugin author included it. Google looks for canonical references, it will index your page even though you tell it the original source is found elsewhere. shows you’re being a good internet citizen…

    the previous hack was not the right way to go – and was interim fix.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘rel=”canonical”’ is closed to new replies.