I have been supplied with a code snippet from a plugin i use to pull in rss feeds it changes the tile to link back to the original source, could you let me know where to insert the code in the template.
add_filter('the_title', 'rss_link_back_to_source', 10, 2);
function rss_link_back_to_source($title, $id = null) {
$originalUrl = get_post_meta($id, 'wprss_item_permalink', true );
if ($originalUrl !== '') {
return '<a href="' . $originalUrl . '">' . $title . '</a>';
} else {
return $title;
}
}