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
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?
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.