Forums

[resolved] [Plugin: Disqus Comment System] List the X most recent comments of a post? (1 post)

  1. ia
    Member
    Posted 2 years ago #

    How can you list the X most recent comments of a post? Just a subset of the comments list, not all of them.

    I've tried calling a thread list using

    $comments = $disqus->get_thread(get_post($post_ID),
    get_permalink($post_ID), urlencode(get_the_title($post_ID)),
    get_the_excerpt($post_ID));

    but it returns -1, which means it's an error. I'm not sure if the
    parameters are correct though. The functions in the WP plugin seem to
    be different from the API in your documentation. I'd prefer to use functions than do database calls. :)

    Related question: does the plugin use wp_list_comments() at all? I
    read somewhere it overrides comments_template() so using some custom
    parameters with the list comments function could solve my problem.

    http://wordpress.org/extend/plugins/disqus-comment-system/

Topic Closed

This topic has been closed to new replies.

About this Topic