[ hide ]
get_syndication_feed_object() template tag can be used in templates to get an object representing the source that a syndicated post was syndicated from. The object can be used to get many different kinds of information about the source feed, using the methods built into class SyndicatedLink.
<?php if (is_syndicated()) : ?> <?php $link = get_syndication_feed_object(); ?> The homepage of this post's source is: <?php print $link->homepage(); ?> <?php endif; ?>
This code snippet, when used in the WordPress Post Loop, will display a short notice on all syndicated posts, including the URL for the human-readable homepage of the source from which the the post was syndicated.
function get_syndication_feed_object ($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 object of class SyndicatedLink if FeedWordPress can identify the source from which this item was syndicated; NULL if the post was not syndicated.