WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Publishing a list of all comments (15 posts)

  1. tbronson
    Member
    Posted 6 years ago #

    How can I publish a list of all comments, on a separate page, ideally, with pagination (e.g 20 comments per page)?

    Right now, I'm using a plugin (Get Recent Comments) to display the latest 5 comments. What I want is a page where visitors can scan a longer list of recent comments, instead of extending the list in the sidebar.

    I hope this is the right forum for this question, else, please point me to where it is...

    Thanks!

  2. courtneyelizabeth
    Member
    Posted 6 years ago #

    I'd be interested in this as well...

  3. tbronson
    Member
    Posted 6 years ago #

    I thought I might be being lazy on on this one, hence no replies... I haven't gotten around to doing it, but I think the comments listing has to be done by creating a custom template. Not quite as simple as loading a plugin, you have to read the docs, but it doesn't seem difficult. I'll follow up when I get it done.

    BTW, I'm not sure where to post these sort of less-than-emergency questions? Is there another set of WP forums that're better for this stuff?

  4. intricateartist
    Member
    Posted 6 years ago #

    Bump - I'm looking for this code, too - Customizable comment listings conflicts with customizable post listings in 2.2.2 - so I need an alternate way to display all comments in a separate page.

  5. nyflorac
    Member
    Posted 6 years ago #

    I'm looking for this code, too. Hope someone can write or wordpress can really think it is important about advance comment function. I'm now using the very great Plug-in "Paged Comment Editing". But it only shows in Editing panel. There is no viewer's vision. (At least, I finally can read all comments in my site)

    Plugin Name: Paged Comment Editing
    Plugin URI: http://www.coldforged.org/paged-comment-editing-plugin/

    The Author, Brian, since does not offer any upgrading right now.

  6. Root
    Member
    Posted 6 years ago #

    This is a walk in the park. Follow closely for step by step instructions.

    1. Build a new template. Copy and paste index.php and save as recents.php.

    2. In recents.php delete the loop.

    3. In its place put the recent comments tag (consult codex).

    4. Create a new page.

    5. Associate page with template.

    6. Open a beer, sit in your hot tub, chill out.

  7. intricateartist
    Member
    Posted 6 years ago #

    Can you link to the recent comments template tag in the codex? I'm not finding it.

    Thank you!

  8. Root
    Member
    Posted 6 years ago #

    This is interesting - I cant find an example in Codex. It is built into WP and available via a widget. But what the code is I am not quite sure yet.

  9. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    There is no recent comments tag. That widget actually directly queries the database to get the comments and display them.

    Oddly enough, WordPress has rather poor functionality in terms of getting and displaying comments. Basically, you have to directly query the database and pull out the comments. There's no standardized ways to do it like with posts and such. This is largely because comments have been neglected in a major way.

    Perhaps in the future, comments will be elevated to a better status and integrated with everything else. For now, do a query and get what you need from the DB directly.

  10. Root
    Member
    Posted 6 years ago #

    I can hear the next question coming Otto42:)
    In the meantime the get recent comments plugin must have the bare bones of the code needed. There must be a limit number - removing it would give all of them. Add a bit of pagination and whey......

  11. shadow
    Member
    Posted 6 years ago #

    I have a page showing all comments and it is controlled by the Recent Comments plugin as stated in the original post.

    Set at 999 max but I will worry about the pagination issue when it gets to be a problem.

  12. intricateartist
    Member
    Posted 6 years ago #

    Ideally, I'd like to publish the post excerpt beside the comment excerpt. The Recent Comments plugin won't work for me, but I'm using that too, for the duration.

  13. tbronson
    Member
    Posted 6 years ago #

    Thanks, shadow. I grabbed Recent Comments and did the same thing. It's pretty good for now, I couldn't get some of the plugin tags to work, so I left it at the default, a chronological list of links: "User commented on Post Title".

    I'm also using Get Recent Comments, but it doesn't seem to allow parameters from the tag so maybe I can run only one configuration. Now, it's limited to last five comments for the sidebar. So for now, I have both plugins going.

    Didn't realize comments was a second class citizen in WP world. My blog is the type where a fair number of comments either thread from a direct post-related comment to a broader discussion, or are not even directly post-related, more blog topic-related. So comments act like a forum, which isn't uncommon. It would be GREAT to integrate, like, bbPress with WP comments, so comments and threads could be selectively, seamlessly carried over from blog to forum!

  14. nyflorac
    Member
    Posted 6 years ago #

    Hi, if you guys want a plug-in for 'Publishing a list of all comments, plus with pages'. I found this one is quite good!

    http://blog.chweng.idv.tw/wordpress/comments-status

    Although it is in Chinese, later I may help to have an English version.

    I did this for my website. the sample page is here.

  15. tbronson
    Member
    Posted 6 years ago #

    I'm pretty happy with the Recent Comments solution (mentioned a couple of posts up), so I'm gonna mark this thread Resolved!

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags