The MU forums have moved to WordPress.org

getting list of comments outside the loop (5 posts)

  1. fritzdsouza
    Member
    Posted 15 years ago #

    Hi
    Am trying to get the comments list for a post outside the loop from a php page this page is called from inside an overlay and the overlay filters the comments and only shows the author's reply to user comments for a particular post
    but the problem is i cant call the comment loop from outside the main loop

    any ideas on how to get this done?

    thnx

  2. MrBrian
    Member
    Posted 15 years ago #

    Why not just query the database for it. This is more of a normal wordpress question.

  3. dsader
    Member
    Posted 15 years ago #

    Xiando has a comments page in his plugin package for WPMU, that does exactly this, I don't have the package installed, though. I have my own, revised/modified, comments page in the works but it is not completed: here's a draft you can look at. It uses usermeta to query posts a user recently commented and returns the post and comment details, which, in my version, shows only the logged in user's comments on a particular post.

    It is not finished, but it is workable for testing and further development. It currently is missing(awaiting) the unset meta action to dismiss the particular post from the generated list.

    http://pastebin.com/m32a5964f

  4. fritzdsouza
    Member
    Posted 15 years ago #

    Hi Dsader Thnx will definitely check the links out :)
    your plugin sounds interesting will chk it out

  5. andrea_r
    Moderator
    Posted 15 years ago #

    Or pull the comments feed.

About this Topic

  • Started 15 years ago by fritzdsouza
  • Latest reply from andrea_r