[ hide ]
get_syndication_feed_id() template tag can be used in templates to retrieve the numerical ID of the WordPress Link object representing the source that a syndicated post was syndicated from. The value can then be stored and passed along to WordPress API functions, such as is_syndicated()) : ?>
$linkId = get_syndication_feed_id();
$link = get_bookmark($linkId);
The name of this post's source is: <?php print $link->link_name; ?>
<?php endif; ?>
This code snippet, when used in the WordPress Post Loop, will display a short notice on all syndicated posts, including the name of the source from which the the post was syndicated.
function get_syndication_feed_id ($id = NULL)
$id is an OPTIONAL parameter. If specified, it should contain the numerical ID of the post for which to get the syndication source ID. If
$id is NULL, or not specified, FeedWordPress will return the numerical ID for the source of the current post in the Post Loop.
Returns an integer containing the numerical ID of a WordPress Link object if FeedWordPress can identify the source from which this item was syndicated; NULL if the post was not syndicated.