Forums

List comments with paged navigation (4 posts)

  1. levani01
    Member
    Posted 2 years ago #

    I need small help with comments. I want to give my site users the ability to view their own comments, I managed to retrieve comments by current user id and list them but I have one problem. Very often there are too many comments to display on one page, so I would like to divide comments into pages - create paged navigation. Unfortunately I'm not so familiar with php to write whole code myself so any help would be appreciated.

    p.s. If there are any plugin that somehow lists comments with paged navigation (recent comments or something like this) I can modify it, so it would be great help for me as well.

    p.s. p.s. AJAX would be much better :)

    Thank you in advance

  2. levani01
    Member
    Posted 2 years ago #

    Can anyone help please?

  3. levani01
    Member
    Posted 2 years ago #

    ???

  4. mercuryfenix
    Member
    Posted 2 years ago #

    House,

    If this is an administrative plugin, you could easily write a plugin to use the admin-ajax.php functionality to paginate comments. See http://codex.wordpress.org/AJAX_in_Plugins. The further reading links are very helpful.

    Otherwise, consider loading all the users comments and using a jQuery interface to page through them. Without at least an intermediate understanding of PHP, this seems to be a good solution.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.