xml - Adding comment count to FeedBurner -
i'm trying add total number of comments made on article on site rss feed using feedburner.
in control panel of feedburner there "feedflare" allow me add option "comments count"
lists number of comments posted item. flare works self-hosted wordpress sites or other systems use wfw:comments element in feed.
i've tried add following in rss/xml doesn't seem work
<wfw:comments xmlns:wfw="http://wellformedweb.org/commentapi/"><?= $comment_count ?></<wfw:comments>
androidpolice have managed it, can't figure out cannot find way of accessing raw rss location.
the code you're using bit out of step feedburner expecting.
what want <wfw:commentrss>
(case-sensitive) supposed point comments feed of post.
pair <slash:comments>
tag right before closing </item>
tag pair this:
<wfw:commentrss>http://example.com/path/to/comments-feed/</wfw:commentrss> <slash:comments>13</slash:comments>
the comment count taken @ snapshot of whenever feedburner creates cache of feed may not exact when appears in feed reader.
Comments
Post a Comment