From http://feedwordpress.radgeek.com/wiki/templates/
get_syndication_permalink() / the_syndication_permalink(): returns or outputs the URI of the original permalink for a syndicated post, on the source it was syndicated from
get_syndication_source() / the_syndication_source(): returns or outputs the human-readable title of the website that a syndicated post was syndicated from
<?php if (is_syndicated()) : ?>
<p>This is a syndicated post. Read the original at
<a href="<?php the_syndication_permalink(); ?>"><?php the_syndication_source(); ?></a>.</p>
<?php endif; ?>
which file and where do i add that?
Use this in e.g. the single.php file of your theme:
<a href="<?php $key="syndication_permalink"; echo get_post_meta($post->ID, $key, true); ?>" target="_blank">The Source Article</a>
The link to the original source is inserted in every single post
To know every meta value of a post just insert this into the post template
<?php the_meta(); ?>
and the meta values show . Pick the one you want and you can remove your code.
A much easier way to add source to feedwordpress post is to download additional add-in feedwordpress boiler and automatically set it to add source after each post.
Good tutorial on this is here.
Agreed with ilyar126 – The FWP add-on plugin “Add attribution” can be used for an easy way to add a link to the original source at the end of every post.
My boiler plate setting: insert “After” the “Content”:
<a href="[original-url]" target="_blank">Read the original article...</a>
Agreed with ilyar126 ! The best solution for this! 🙂