WordPress查询:Can';t使用SimplePie解析RSS项目提要中的自定义标记

WordPress查询:Can';t使用SimplePie解析RSS项目提要中的自定义标记,wordpress,rss,simplepie,Wordpress,Rss,Simplepie,我修改了默认的rss提要项,以包含自定义字段中的元素。现在看起来像这样 <item> <title>Post Title</title> <link>http://example.com/</link> <pubDate>Sun, 22 Apr 2018 16:35:09 +0000</pubDate> <dc:creator><![CDATA[lubandi]

我修改了默认的rss提要项,以包含自定义字段中的元素。现在看起来像这样

<item>
    <title>Post Title</title>
    <link>http://example.com/</link>
    <pubDate>Sun, 22 Apr 2018 16:35:09 +0000</pubDate>
     <dc:creator><![CDATA[lubandi]]></dc:creator>
        <category><![CDATA[Bobi Wine]]></category>

    <guid isPermaLink="false">http://example.com/</guid>
    <description><![CDATA[Source: AUDIO LAD]]></description>
<field>Custom field value here</field>
</item>
任何帮助都将不胜感激。多谢各位

编辑:我根据自己的情况修改了演示代码,但它不起作用:它返回null

$media_group = $item->get_item_tags('', 'group');
$media_content = $media_group[0]['child']['']['field'];
$song_title = $media_content[0]['attribs']['']['field'];
echo $song_title;

您是如何修改演示代码以尝试从
字段
获取值的?我已将问题编辑为如何尝试的问题
$media_group = $item->get_item_tags('', 'group');
$media_content = $media_group[0]['child']['']['field'];
$song_title = $media_content[0]['attribs']['']['field'];
echo $song_title;