Threads per category widget

60 views
Skip to first unread message

Mark Reid

unread,
May 21, 2012, 2:05:08 AM5/21/12
to Disqus Developers
Hi,

I have a site with several categories and I'd like to be able to show
recent comments on a per category basis on the page corresponding to
each category.

The Disqus recent comments widget currently takes several parameters.
Would it be possible to add another that acts as a category filter?
For example,

recent_comments_widget.js?
num_items=10&hide_avatars=1&avatar_size=32&excerpt_length=200&category=1234567

would create a recent comments widget with 10 recent items from
category 1234567.

If this is not possible, could some one provide pointers on how to
achieve a similar effect by coding against the Disqus API?

Thanks,

Mark

Mike Clarke

unread,
May 22, 2012, 2:58:33 AM5/22/12
to disqu...@googlegroups.com
Hi Mark,
The recent comments widget doesn't accept a category argument, so your best bet is posts/list (http://disqus.com/api/docs/posts/list/). This will give you greater flexibility & control over the results returned versus the widget.
-Mike

Reply all
Reply to author
Forward
0 new messages