WordPress.org

Ready to get started?Download WordPress

Forums

ul class=children inserted in replied comments code? (2 posts)

  1. cogmios
    Member
    Posted 3 years ago #

    In my comment form for replies the following is added at the beginning
    (auto by wp):

    <ul class='children'>

    and at the end:

    </li>
    </ul>
    </li>

    This kinda breaks my comment function because somehow I would need to add:

    <li> before the ul and </li> after the url but only if it is a replied comment. I could do that ... as the other workaround but ... how to check if a comment is a reply (i could then insert it in comments.php).

    So either:
    - these 2 codes that are put in there: i dont want OR
    - i need to check if it is a reply to have a li before and a li after the insert ul

    ???

  2. Agus Suhanto
    Member
    Posted 3 years ago #

    I think you should see the source code of Twenty Ten theme on how the comment thread is implemented.

    In comments.php, it only puts the following code:

    wp_list_comments( array( 'callback' => 'twentyten_comment' ) );
    

    Then, check out functions.php, find function twentyten_comment() to see how to implement comment threading, regardless how deep the reply comments thread is.

Topic Closed

This topic has been closed to new replies.

About this Topic