使用Wordpress中的SimplePie在提要的通道中获取元素?

使用Wordpress中的SimplePie在提要的通道中获取元素?,wordpress,youtube,simplepie,Wordpress,Youtube,Simplepie,我应该如何使用SimplePie或使用SimplePie的什么功能来获取YouTube rss播放列表或提要频道/标题部分中其他元素/属性的全部结果 播放列表示例: 这不起作用: $totalResults = $rss->get_channel_tags('http://a9.com/-/spec/opensearchrss/1.0/', 'totalResults'); $totalResultsData = $totalResults[0]; 我没有让它工作,但是如果我使用Atom

我应该如何使用SimplePie或使用SimplePie的什么功能来获取YouTube rss播放列表或提要频道/标题部分中其他元素/属性的全部结果

播放列表示例:

这不起作用:

$totalResults = $rss->get_channel_tags('http://a9.com/-/spec/opensearchrss/1.0/', 'totalResults');
$totalResultsData = $totalResults[0];

我没有让它工作,但是如果我使用Atom提要,它将与函数get\u feed\u tags()一起工作

这项工作:

播放列表: (您可以删除?alt=atom参数,因为默认情况下使用该参数)

$totalResults = $rss->get_feed_tags('http://a9.com/-/spec/opensearch/1.1/', 'totalResults');
$totalResultsData = $totalResults[0]['data'];