我正在寻找一种在RSS提要中显示或回显每个帖子ID的方法。基本上当我访问my RSS feed site, 我得到以下XML项:<title>
, <link>
, <comments>
, <category>
, <pubDate>
, <guid isPermaLink>
, <description>
.
当我在代码中使用Google函数时
var url = \'http://howtodeployit.com/category/daily-devotion/feed/\';
$.ajax({
type: "GET",
url: document.location.protocol + \'//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=1000&callback=?&q=\' + encodeURIComponent(url),
dataType: \'json\',
返回的对象包括标题、链接、作者、publishedDate、contentSnippet。。。
我还想返回的是帖子ID,但不确定如何让我的WordPress将其包含在XML中。