Feedwordpress – Linking permalinks and comments to local or remote site?

 

Feedwordpress is a WordPress plugin which allows easy syndication of RSS-feeds to your blog, sidebar or both.

In Feedwordpress you are presented with the choice between linking to your local post when a excerpt is imported or linking directly to the remote site.

Often you will want to present a link to the original post, but also allow visitors to comments (and ping) on your site. The setting ‘ Point to local comment feeds on this website’ doesn’t seem to do much if you point your permalinks to the original site. This is a quirk which held many, including me, up for a few hours.


The solution is to reverse the problem. If your feed is set to pointing to the original site, the permalink always links away from your page. In many views this is not ideal.

But Feedwordpress offers a solution in the form of the function ‘the_syndication_permalink()’ . You will probably need to edit the theme, but fortunately this is not too hard.

Set all your feeds to point to the local copy on the website. Then enter you theme, for instance index.php where the main page usually resides. You will probably see something like this:

1
2
<a href="<?php the_permalink() ?>" rel="bookmark" 
title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>

The permalink now points to your site. You can easily add a link to the source adding a link like this:

1
2
<a href="<?php the_syndication_permalink() ?>" rel="bookmark"
 title="Permanent Link to <?php the_title(); ?>">Original link</a>

Voila. You now control where your posts link to, and the original website owner get his link as well.

Tags: , , , ,


Bas Schuiling

Bas Schuiling

Expert on everything web development and WordPress. Is pressing his words when version 1 came out and has been liking it ever since. More than 10 years of work experience in web development and writer of this blog.