How do I use Simplepie to parse an RSS Feed (using a custom namespace) within a Wordpress template? -
i'm trying parse third-party rss feed on wordpress site, using fetch_feed.
in addition standard <title>, <link>, , <description> elements, feed i'm trying parse contains several custom elements, using custom namespace.
e.g. <foo:venue>, <foo:genre>, <foo:show>
i want display these custom elements on template, can't work out how it. can offer or point me in right direction?
thanks
the simplepie website has documentation on how grab custom tags or attributes.
the code first example tag this:
$venue = $item->get_item_tags('foo', 'venue');
Comments
Post a Comment