function feedwordpress_item_feed_data() { // In a post context.... if (is_syndicated()) { ?> <source> <title><?php print htmlspecialchars(get_syndication_source()); ?> </title> <link rel="alternate" type="text/html" href="<?php print htmlspecialchars(get_syndication_source_link()); ?> " /> <link rel="self" href="<?php print htmlspecialchars(get_syndication_feed()); ?> " /> <?php $id = get_syndication_feed_guid(); if (strlen($id) > 0) { ?> <id><?php print htmlspecialchars($id); ?> </id> <?php } $updated = get_feed_meta('feed/updated'); if (strlen($updated) > 0) { ?> <updated><?php print $updated; ?> </updated> <?php } ?> </source> <?php } }
public function syndication_feed_guid($original = NULL) { $ret = $this->meta('syndication_source_id', array("unproxy" => $original)); // If this is blank, fall back to the full URL of the feed if (is_null($ret) or strlen(trim($ret)) == 0) { $ret = get_syndication_feed(); } return $ret; }
function the_syndication_feed($original = NULL) { echo get_syndication_feed($original); }