WordPress.org

Ready to get started?Download WordPress

Forums

wp_list_comments() - need more control (3 posts)

  1. digitalmatt
    Member
    Posted 4 years ago #

    Hi, I'm currently building a new theme where I need a lot of control over how comments display. I need to significantly change the markup by adding wrapping divs, shifting things around, etc. I also need to be able to distinguish between the first and last comment for a post for special css classes.

    Is there a way to get more control over wp_list_comments() without having to touch the core? The parameters you can pass don't help me with what I need to do at all.

  2. t31os
    Member
    Posted 4 years ago #

    Use a custom callback, see this page..

    http://codex.wordpress.org/Template_Tags/wp_list_comments

  3. digitalmatt
    Member
    Posted 4 years ago #

    Ahhh! Thank you very much, I overlooked passing a callback.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.